Permalink
Browse files
Update documentation for SameSite
- Loading branch information...
Showing
with
3 additions
and
3 deletions.
-
+2
−2
src/webob/cookies.py
-
+1
−1
src/webob/response.py
|
|
@@ -471,8 +471,8 @@ def make_cookie(name, value, max_age=None, path='/', domain=None, |
|
|
Set a comment on the cookie. Default: ``None``
|
|
|
|
|
|
``samesite``
|
|
|
The 'SameSite' attribute of the cookie, can be either ``b"Strict"``,
|
|
|
``b"Lax"``, or ``None``.
|
|
|
The 'SameSite' attribute of the cookie, can be either ``"Strict"``,
|
|
|
``"Lax"``, or ``None``.
|
|
|
"""
|
|
|
|
|
|
# We are deleting the cookie, override max_age and expires
|
|
|
|
|
|
@@ -1005,7 +1005,7 @@ def set_cookie(self, name, value='', max_age=None, |
|
|
|
|
|
A string representing the ``SameSite`` attribute of the cookie or
|
|
|
``None``. If samesite is ``None`` no ``SameSite`` value will be sent
|
|
|
in the cookie. Should only be ``b"Strict"`` or ``b"Lax"``.
|
|
|
in the cookie. Should only be ``"Strict"`` or ``"Lax"``.
|
|
|
|
|
|
``comment``
|
|
|
|
|
|
|
0 comments on commit
2e719a9