Skip to content

Commit

Permalink
[FIX] CSRF_TRUSTED_ORIGINS must not be None
Browse files Browse the repository at this point in the history
  • Loading branch information
dameyerdave committed Jan 4, 2024
1 parent 8b13aca commit 3d0de00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/app/ena_upload_ms/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@

# CSRF configuration
CSRF_TRUSTED_ORIGINS = (
environ.get("DJANGO_CSRF_TRUSTED_ORIGINS").split(",")
environ.get("DJANGO_CSRF_TRUSTED_ORIGINS", "*").split(",")
if environ.get("DJANGO_CSRF_TRUSTED_ORIGINS")
else None
else []
)
CSRF_USE_SESSIONS = False
CSRF_COOKIE_HTTPONLY = False
Expand Down

0 comments on commit 3d0de00

Please sign in to comment.