We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3800c4b commit b8b69b1Copy full SHA for b8b69b1
1 file changed
patch/add-django-http-cookie-value-none.patch
@@ -0,0 +1,13 @@
1
+--- django/http//response.py.orig 2020-07-08 14:34:42.776562458 +0200
2
++++ django/http//response.py 2020-07-08 14:35:56.454687322 +0200
3
+@@ -197,8 +197,8 @@
4
+ if httponly:
5
+ self.cookies[key]['httponly'] = True
6
+ if samesite:
7
+- if samesite.lower() not in ('lax', 'strict'):
8
+- raise ValueError('samesite must be "lax" or "strict".')
9
++ if samesite.lower() not in ('lax', 'strict', 'none'):
10
++ raise ValueError('samesite must be "lax", "strict", or "none".')
11
+ self.cookies[key]['samesite'] = samesite
12
+
13
+ def setdefault(self, key, value):
0 commit comments