Skip to content

Commit 19ee8cc

Browse files
iqra-codespicnixz
andauthored
Update Doc/library/http.cookies.rst
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 5fa67f1 commit 19ee8cc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Doc/library/http.cookies.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,10 @@ Morsel Objects
150150

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

157158

158159
The attribute :attr:`partitioned` indicates to user agents that these

0 commit comments

Comments
 (0)