Skip to content
Merged
Prev Previous commit
Next Next commit
Added version changed details.
  • Loading branch information
akash0x53 authored and alex committed Apr 7, 2018
commit 81446f6a4a67248fd5c8780b62df65468fe462fb
9 changes: 6 additions & 3 deletions Doc/library/http.cookies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,12 @@ Morsel Objects
in HTTP requests, and is not accessible through JavaScript. This is intended
to mitigate some forms of cross-site scripting.

The attribute :attr:`samesite` specifies that browser is not allowed to send the
cookie along with cross-site requests. This help to mitigate CSRF attacks. Valid
values for this attribute are "Strict" and "Lax".
.. versionchanged:: 3.7
Added support for :attr:`samesite` attribute.

The attribute :attr:`samesite` specifies that browser is not allowed to send the
cookie along with cross-site requests. This help to mitigate CSRF attacks. Valid
values for this attribute are "Strict" and "Lax".

The keys are case-insensitive and their default value is ``''``.

Expand Down