From 02d56a890c9f600aa9c44b2a117b1fa4cf819bdb Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Thu, 23 Jan 2020 17:52:49 +0100 Subject: [PATCH] Set SESSION_COOKIE_SECURE setting. --- userpanel/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userpanel/settings.py b/userpanel/settings.py index cb5ce35..b5c1852 100644 --- a/userpanel/settings.py +++ b/userpanel/settings.py @@ -125,7 +125,7 @@ LOGIN_URL = '/auth/login/' SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies" -# SESSION_COOKIE_SECURE = True +SESSION_COOKIE_SECURE = config('SESSION_COOKIE_SECURE', default=True, cast=bool) # Internationalization # https://docs.djangoproject.com/en/2.2/topics/i18n/