Skip to content

Commit

Permalink
fix: Samesite cookie value - fixed #266
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Apr 28, 2021
1 parent 7890740 commit bbd40f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djangosaml2/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def process_response(self, request, response):
self.cookie_name,
path=settings.SESSION_COOKIE_PATH,
domain=settings.SESSION_COOKIE_DOMAIN,
samesite=None,
samesite="None",
)
patch_vary_headers(response, ('Cookie',))
else:
Expand Down Expand Up @@ -68,6 +68,6 @@ def process_response(self, request, response):
path=settings.SESSION_COOKIE_PATH,
secure=settings.SESSION_COOKIE_SECURE or None,
httponly=settings.SESSION_COOKIE_HTTPONLY or None,
samesite=None
samesite="None"
)
return response

0 comments on commit bbd40f7

Please sign in to comment.