Skip to content

Commit fe70630

Browse files
authored
CSRF_TRUSTED_ORIGINS setting to enhance security (#857)
1 parent e60aaae commit fe70630

File tree

1 file changed

+2
-0
lines changed
  • {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}

1 file changed

+2
-0
lines changed

{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868
ALLOWED_HOSTS = env.list("HOST", default=["*"])
6969
SITE_ID = 1
7070

71+
CSRF_TRUSTED_ORIGINS = env.list("CSRF_TRUSTED_ORIGINS", default=[])
72+
7173
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
7274
SECURE_SSL_REDIRECT = env.bool("SECURE_REDIRECT", default=False)
7375

0 commit comments

Comments
 (0)