Skip to content

Commit 19d07f2

Browse files
committed
chore: Documentation samesite cookie MUST have cookie secure
1 parent 883004e commit 19d07f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/source/contents/setup.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ You can even configure the SAML cookie name as follows::
7070

7171
SAML_SESSION_COOKIE_NAME = 'saml_session'
7272

73+
Remember that in your browser "SameSite=None" attribute MUST also
74+
have the "Secure" attribute, which is required in order to use "SameSite=None".
75+
76+
SESSION_COOKIE_SECURE = True
77+
7378
.. Note::
7479

7580
djangosaml2 will attempt to set the ``SameSite`` attribute of the SAML session cookie to ``None`` so that it can be

0 commit comments

Comments
 (0)