]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-136992: Add "None" as valid `SameSite` value as per RFC 6265bis (GH-137040...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 27 Jul 2025 20:08:46 +0000 (22:08 +0200)
committerGitHub <noreply@github.com>
Sun, 27 Jul 2025 20:08:46 +0000 (22:08 +0200)
commit97f5fdf567c61851fee38f1f1d0d073777d94f4a
tree0ffd2388b310b36a66a269e8c5bcefbb9daa3ca7
parentf867711df000dddcb7da5dc8afaac56adb7bc21b
[3.13] gh-136992: Add "None" as valid `SameSite` value as per RFC 6265bis (GH-137040) (#137141)

gh-136992: Add "None" as valid `SameSite` value as per RFC 6265bis (GH-137040)

The "SameSite" attribute defined in RFC 6265bis [1] allows the "Strict", "Lax" and "None"
enforcement modes. We already documented "Strict" and "Lax" as being valid values
but "None" was missing from the list. While the RFC has not been formally approved,
modern browsers support the "None" value [2, 3] thereby making sense to document it.

[1]: https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis
[2]: https://developers.google.com/search/blog/2020/01/get-ready-for-new-samesitenone-secure
[3]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie#none

---------
(cherry picked from commit ae8b7d710020dfd336edd399fa35525dfe8fc049)

Co-authored-by: Iqra Khan <iqraakhan2519@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Doc/library/http.cookies.rst