mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Add config option for cookie SameSite policy
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
23d54b8b4b
commit
824f910bfe
13 changed files with 41 additions and 25 deletions
|
@ -31,7 +31,7 @@ if (localeSelector.length > 0) {
|
|||
localeSelector.change(function () {
|
||||
Cookies.set('locale', $(this).val(), {
|
||||
expires: 365,
|
||||
sameSite: 'strict'
|
||||
sameSite: window.cookiePolicy
|
||||
})
|
||||
window.location.reload()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue