mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #30862 -- Allowed setting SameSite cookies flags to 'none'.
Thanks Florian Apolloner and Carlton Gibson for reviews.
This commit is contained in:
parent
14e690ae5a
commit
b33bfc3839
5 changed files with 46 additions and 7 deletions
|
@ -383,6 +383,10 @@ cookie from being sent in cross-site requests.
|
|||
|
||||
See :setting:`SESSION_COOKIE_SAMESITE` for details about ``SameSite``.
|
||||
|
||||
.. versionchanged:: 3.1
|
||||
|
||||
Setting ``CSRF_COOKIE_SAMESITE = 'None'`` was allowed.
|
||||
|
||||
.. setting:: CSRF_COOKIE_SECURE
|
||||
|
||||
``CSRF_COOKIE_SECURE``
|
||||
|
@ -1862,6 +1866,10 @@ cookie from being sent in cross-site requests.
|
|||
|
||||
See :setting:`SESSION_COOKIE_SAMESITE` for details about ``SameSite``.
|
||||
|
||||
.. versionchanged:: 3.1
|
||||
|
||||
Setting ``LANGUAGE_COOKIE_SAMESITE = 'None'`` was allowed.
|
||||
|
||||
.. setting:: LANGUAGE_COOKIE_SECURE
|
||||
|
||||
``LANGUAGE_COOKIE_SECURE``
|
||||
|
@ -3208,7 +3216,14 @@ Possible values for the setting are:
|
|||
regular link from an external website and be blocked in CSRF-prone request
|
||||
methods (e.g. ``POST``).
|
||||
|
||||
* ``None``: disables the flag.
|
||||
* ``'None'`` (string): the session cookie will be sent with all same-site and
|
||||
cross-site requests.
|
||||
|
||||
* ``False``: disables the flag.
|
||||
|
||||
.. versionchanged:: 3.1
|
||||
|
||||
Setting ``SESSION_COOKIE_SAMESITE = 'None'`` was allowed.
|
||||
|
||||
.. _SameSite: https://www.owasp.org/index.php/SameSite
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue