Skip to content

Commit

Permalink
🐛 Patch Django 4.0 CSRF Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
joyliu-q committed Jan 3, 2024
1 parent 152773b commit 9e7d036
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/Platform/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@
# CORS Settings

CORS_ALLOW_ALL_ORIGINS = True
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")

# CSRF Settings
CSRF_TRUSTED_ORIGINS = [f"https://*.{domain}" for domain in DOMAINS]


# OAuth2 Settings

Expand Down

0 comments on commit 9e7d036

Please sign in to comment.