File tree 3 files changed +8
-4
lines changed
debug_toolbar/static/debug_toolbar/js
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -341,9 +341,9 @@ const djdt = {
341
341
options . path ? "; path=" + options . path : "" ,
342
342
options . domain ? "; domain=" + options . domain : "" ,
343
343
options . secure ? "; secure" : "" ,
344
- "sameSite " in options
345
- ? "; sameSite =" + options . samesite
346
- : "; sameSite=Lax " ,
344
+ "samesite " in options
345
+ ? "; samesite =" + options . samesite
346
+ : "; samesite=lax " ,
347
347
] . join ( "" ) ;
348
348
349
349
return value ;
Original file line number Diff line number Diff line change 7
7
* Adjusted app directories system check to allow for nested template loaders.
8
8
* Switched from flake8, isort and pyupgrade to `ruff
9
9
<https://beta.ruff.rs/> `__.
10
+ * Converted cookie keys to lowercase. Fixed the ``samesite `` argument to
11
+ ``djdt.cookie.set ``.
10
12
11
13
4.1.0 (2023-05-15)
12
14
------------------
Original file line number Diff line number Diff line change @@ -421,7 +421,9 @@ common methods available.
421
421
:param value: The value to be set.
422
422
423
423
:param options: The options for the value to be set. It should contain the
424
- properties ``expires `` and ``path ``.
424
+ properties ``expires `` and ``path ``. The properties ``domain ``,
425
+ ``secure `` and ``samesite `` are also supported. ``samesite `` defaults
426
+ to ``lax `` if not provided.
425
427
426
428
.. js :function :: djdt .hide_toolbar
427
429
You can’t perform that action at this time.
0 commit comments