diff --git a/ureport/settings.py.prod b/ureport/settings.py.prod index 78782087a..f6b8261cf 100644 --- a/ureport/settings.py.prod +++ b/ureport/settings.py.prod @@ -20,6 +20,7 @@ ALLOWED_HOSTS = ['*'] SESSION_COOKIE_SECURE = True SESSION_EXPIRE_AT_BROWSER_CLOSE = False SESSION_COOKIE_AGE = 1209600 # 2 weeks +MESSAGE_STORAGE = "django.contrib.messages.storage.session.SessionStorage" CSRF_COOKIE_SECURE = True CSRF_COOKIE_SAMESITE = "Strict" diff --git a/ureport/settings.py.staging b/ureport/settings.py.staging index 6aea01edd..099070b5a 100644 --- a/ureport/settings.py.staging +++ b/ureport/settings.py.staging @@ -18,6 +18,7 @@ ALLOWED_HOSTS = ['.nyaruka.com', '.ureport.in'] SESSION_EXPIRE_AT_BROWSER_CLOSE = False SESSION_COOKIE_SECURE = True SESSION_COOKIE_AGE = 1209600 # 2 weeks +MESSAGE_STORAGE = "django.contrib.messages.storage.session.SessionStorage" CSRF_COOKIE_SECURE = True CSRF_COOKIE_SAMESITE = "Strict"