Skip to content

Commit

Permalink
chore(socialaccount/sessions): Respect SESSION_COOKIE_SECURE
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Jul 2, 2023
1 parent c20267f commit c956893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allauth/socialaccount/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit c956893

Please sign in to comment.