diff options
author | Jan Lehnardt <jan@apache.org> | 2020-09-07 13:57:21 +0200 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2020-09-07 13:57:24 +0200 |
commit | cd6b7bd16c7a4bc142040f6ed59ebe8b92c20bf1 (patch) | |
tree | ffd2fdb7b57f58ca84f3f0ce6036030761a9e3b1 | |
parent | e7822a5390de398ae032a0f632ec3c9a89a10864 (diff) | |
download | couchdb-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.erl | 1 |
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}]; _ -> |