Skip to content

Commit

Permalink
Add CSRF_TRUSTED_ORIGINS Django option
Browse files Browse the repository at this point in the history
  • Loading branch information
np5 committed Jul 9, 2023
1 parent 3fcb821 commit 5164f4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
if "SESSION_EXPIRE_AT_BROWSER_CLOSE" in django_zentral_settings:
SESSION_EXPIRE_AT_BROWSER_CLOSE = django_zentral_settings["SESSION_EXPIRE_AT_BROWSER_CLOSE"]

if "CSRF_TRUSTED_ORIGINS" in django_zentral_settings:
CSRF_TRUSTED_ORIGINS = django_zentral_settings["CSRF_TRUSTED_ORIGINS"]

MAX_PASSWORD_AGE_DAYS = django_zentral_settings.get("MAX_PASSWORD_AGE_DAYS", None)

LOGIN_REDIRECT_URL = '/'
Expand Down

0 comments on commit 5164f4f

Please sign in to comment.