Skip to content

Commit bbd40f7

Browse files
committed
fix: Samesite cookie value - fixed #266
1 parent 7890740 commit bbd40f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

djangosaml2/middleware.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def process_response(self, request, response):
3434
self.cookie_name,
3535
path=settings.SESSION_COOKIE_PATH,
3636
domain=settings.SESSION_COOKIE_DOMAIN,
37-
samesite=None,
37+
samesite="None",
3838
)
3939
patch_vary_headers(response, ('Cookie',))
4040
else:
@@ -68,6 +68,6 @@ def process_response(self, request, response):
6868
path=settings.SESSION_COOKIE_PATH,
6969
secure=settings.SESSION_COOKIE_SECURE or None,
7070
httponly=settings.SESSION_COOKIE_HTTPONLY or None,
71-
samesite=None
71+
samesite="None"
7272
)
7373
return response

0 commit comments

Comments
 (0)