Add config option for cookie SameSite policy
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user