Skip to content

gh-136992: Add 'None' as valid SameSite value as per RFC6265bis #137040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 27, 2025
Prev Previous commit
Next Next commit
Update Doc/library/http.cookies.rst
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
  • Loading branch information
iqra-codes and picnixz authored Jul 26, 2025
commit 19ee8ccf75478d2e4485390d50bc4d575ea890ff
7 changes: 4 additions & 3 deletions Doc/library/http.cookies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ Morsel Objects

The attribute :attr:`samesite` controls when the browser sends the cookie with
cross-site requests. This helps to mitigate CSRF attacks. Valid values are
"Strict" (never sent with cross-site requests), "Lax" (sent with top-level
navigation), and "None" (always sent). When using "None", the "secure"
attribute must also be set, as required by modern browsers.
"Strict" (only sent with same-site requests), "Lax" (sent with same-site
requests and top-level navigations), and "None" (sent with same-site and
cross-site requests). When using "None", the "secure" attribute must also
be set, as required by modern browsers.


The attribute :attr:`partitioned` indicates to user agents that these
Expand Down
Loading