summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-07-16 08:16:58 +0200
committerGitHub <noreply@github.com>2020-07-16 08:16:58 +0200
commit240cbb63bf9965c63d7a3cc9032f91410f414d46 (patch)
tree14d5fcd1e195f9ceae2c04082a56dfc978f291cb /docs/ref
parent156a2138db20abc89933121e4ff2ee2ce56a173a (diff)
Fixed #31790 -- Fixed setting SameSite and Secure cookies flags in HttpResponse.delete_cookie().
Cookies with the "SameSite" flag set to None and without the "secure" flag will be soon rejected by latest browser versions. This affects sessions and messages cookies.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/request-response.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index 705da1842a..80e3e1e6ed 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -890,7 +890,7 @@ Methods
Using ``samesite='None'`` (string) was allowed.
-.. method:: HttpResponse.delete_cookie(key, path='/', domain=None)
+.. method:: HttpResponse.delete_cookie(key, path='/', domain=None, samesite=None)
Deletes the cookie with the given key. Fails silently if the key doesn't
exist.
@@ -899,6 +899,10 @@ Methods
values you used in ``set_cookie()`` -- otherwise the cookie may not be
deleted.
+ .. versionchanged:: 2.2.15
+
+ The ``samesite`` argument was added.
+
.. method:: HttpResponse.close()
This method is called at the end of the request directly by the WSGI