From c956893352afd9b2efee0edba24f743ffc646abe Mon Sep 17 00:00:00 2001 From: Raymond Penners Date: Sun, 2 Jul 2023 09:51:23 +0200 Subject: [PATCH] chore(socialaccount/sessions): Respect SESSION_COOKIE_SECURE --- allauth/socialaccount/sessions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allauth/socialaccount/sessions.py b/allauth/socialaccount/sessions.py index f648c9de76..80f591bf22 100644 --- a/allauth/socialaccount/sessions.py +++ b/allauth/socialaccount/sessions.py @@ -49,7 +49,7 @@ def save(self, response): domain=settings.SESSION_COOKIE_DOMAIN, # The cookie is only needed on this endpoint path=urlparse(response.url).path, - secure=True, + secure=settings.SESSION_COOKIE_SECURE, httponly=None, **kwargs )