diff --git a/website/settings.py b/website/settings.py index 5bef242..68fead9 100644 --- a/website/settings.py +++ b/website/settings.py @@ -277,6 +277,11 @@ SECURE_CONTENT_TYPE_NOSNIFF = True X_FRAME_OPTIONS = "DENY" SECURE_REFERRER_POLICY = "same-origin" +SESSION_COOKIE_SECURE = not DEBUG +CSRF_COOKIE_SECURE = not DEBUG +CSRF_COOKIE_HTTPONLY = True +SESSION_COOKIE_HTTPONLY = True + SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") if not DEBUG: