[3.14] gh-136992: Add "None" as valid SameSite
value as per RFC 6265bis (GH-137040)
#137140
+6
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
(cherry picked from commit ae8b7d7)
Co-authored-by: Iqra Khan iqraakhan2519@gmail.com
Co-authored-by: Bénédikt Tran 10796600+picnixz@users.noreply.github.com
http.cookies
should mention thatsamesite=None
is valid as per RFC6265bis #136992📚 Documentation preview 📚: https://cpython-previews--137140.org.readthedocs.build/