Skip to content

Commit

Permalink
fix: CSRF_TRUSTED_ORIGINS
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Dec 20, 2024
1 parent 20b700c commit 8fb0b92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,7 @@

SESSION_ENGINE = "api.models.session"

CSRF_HEADER_NAME = "HTTP_CSRFTOKEN"
CSRF_TRUSTED_ORIGINS = []
if ENV != "local":
CSRF_TRUSTED_ORIGINS.append(SERVICE_SITE_URL.removeprefix("https://"))
print(f"CSRF_TRUSTED_ORIGINS = {CSRF_TRUSTED_ORIGINS}")

0 comments on commit 8fb0b92

Please sign in to comment.