We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 176614a commit 3f6def6Copy full SHA for 3f6def6
debug_toolbar/static/debug_toolbar/js/toolbar.js
@@ -270,6 +270,9 @@ const djdt = {
270
options.path ? "; path=" + options.path : "",
271
options.domain ? "; domain=" + options.domain : "",
272
options.secure ? "; secure" : "",
273
+ "sameSite" in options
274
+ ? "; sameSite=" + options.samesite
275
+ : "; sameSite=Lax",
276
].join("");
277
278
return value;
docs/changes.rst
@@ -1,6 +1,13 @@
1
Change log
2
==========
3
4
+Next version
5
+------------
6
+
7
+* Changed ``djdt.cookie.set()`` to set ``sameSite=Lax`` by default if
8
+ callers do not provide a value.
9
10
11
3.2 (2020-12-03)
12
----------------
13
0 commit comments