From a49669531673bf97baaec4cc8f286a3861b77604 Mon Sep 17 00:00:00 2001 From: ChanHHaeng Date: Fri, 31 May 2024 16:54:18 +0900 Subject: [PATCH] fix:add settings relate to SSL --- pure_plate/pure_plate/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pure_plate/pure_plate/settings.py b/pure_plate/pure_plate/settings.py index cd6d093..4c33249 100644 --- a/pure_plate/pure_plate/settings.py +++ b/pure_plate/pure_plate/settings.py @@ -185,4 +185,7 @@ }, } - +SECURE_SSL_REDIRECT = True +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') +SESSION_COOKIE_SECURE = True +CSRF_COOKIE_SECURE = True