File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -147,9 +147,12 @@ Morsel Objects
147
147
in HTTP requests, and is not accessible through JavaScript. This is intended
148
148
to mitigate some forms of cross-site scripting.
149
149
150
- The attribute :attr: `samesite ` specifies that the browser is not allowed to
151
- send the cookie along with cross-site requests. This helps to mitigate CSRF
152
- attacks. Valid values for this attribute are "Strict" and "Lax".
150
+ The attribute :attr: `samesite ` controls when the browser sends the cookie with
151
+ cross-site requests. This helps to mitigate CSRF attacks. Valid values are
152
+ "Strict" (only sent with same-site requests), "Lax" (sent with same-site
153
+ requests and top-level navigations), and "None" (sent with same-site and
154
+ cross-site requests). When using "None", the "secure" attribute must also
155
+ be set, as required by modern browsers.
153
156
154
157
The keys are case-insensitive and their default value is ``'' ``.
155
158
You can’t perform that action at this time.
0 commit comments