Skip to content

Commit

Permalink
Toggled secure cookies and csrf settings for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
PriyavKaneria committed Oct 4, 2023
1 parent d545bde commit 6e56569
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrihub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@
if not DEBUG:
SECURE_SSL_REDIRECT = True
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
else:
SECURE_SSL_REDIRECT = False
SESSION_COOKIE_SECURE = False
CSRF_COOKIE_SECURE = False

# Internationalization
# https://docs.djangoproject.com/en/3.2/topics/i18n/
Expand Down

0 comments on commit 6e56569

Please sign in to comment.