Add config option for cookie SameSite policy

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson
2020-08-27 02:04:49 +02:00
parent 23d54b8b4b
commit 824f910bfe
13 changed files with 41 additions and 25 deletions

View File

@@ -1597,7 +1597,7 @@ function toggleNightMode () {
} else {
Cookies.set('nightMode', !isActive, {
expires: 365,
sameSite: 'strict'
sameSite: window.cookiePolicy
})
}
}