Skip to content

Commit

Permalink
feat(settings.py): add CSRF_TRUSTED_ORIGINS setting to enhance security
Browse files Browse the repository at this point in the history
This change allows the application to specify trusted origins for CSRF protection, improving the overall security of the application.
  • Loading branch information
Hesbon5600 committed Jan 27, 2025
1 parent e60aaae commit 9830012
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
ALLOWED_HOSTS = env.list("HOST", default=["*"])
SITE_ID = 1

CSRF_TRUSTED_ORIGINS = env.list("CSRF_TRUSTED_ORIGINS", default=[])

SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
SECURE_SSL_REDIRECT = env.bool("SECURE_REDIRECT", default=False)

Expand Down

0 comments on commit 9830012

Please sign in to comment.