summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2020-09-07 13:57:21 +0200
committerJan Lehnardt <jan@apache.org>2020-09-07 13:57:24 +0200
commitcd6b7bd16c7a4bc142040f6ed59ebe8b92c20bf1 (patch)
treeffd2fdb7b57f58ca84f3f0ce6036030761a9e3b1
parente7822a5390de398ae032a0f632ec3c9a89a10864 (diff)
downloadcouchdb-feat/add-same-site-secure/master.tar.gz
feat: add same_site = none_secure optionfeat/add-same-site-secure/master
c.f. https://web.dev/samesite-cookies-explained/
-rw-r--r--src/couch/src/couch_httpd_auth.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couch/src/couch_httpd_auth.erl b/src/couch/src/couch_httpd_auth.erl
index 45a82bd0f..9d82e2dad 100644
--- a/src/couch/src/couch_httpd_auth.erl
+++ b/src/couch/src/couch_httpd_auth.erl
@@ -497,6 +497,7 @@ same_site() ->
case string:to_lower(SameSite) of
"" -> [];
"none" -> [{same_site, none}];
+ "none_secure" -> [{same_site, none}, secure];
"lax" -> [{same_site, lax}];
"strict" -> [{same_site, strict}];
_ ->