mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -05:00
Changed default policy from 'strict' to 'lax' due to the reasons mentioned in 3d1fab05
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
824f910bfe
commit
387e668275
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ module.exports = {
|
||||||
upgradeInsecureRequests: 'auto',
|
upgradeInsecureRequests: 'auto',
|
||||||
reportURI: undefined
|
reportURI: undefined
|
||||||
},
|
},
|
||||||
cookiePolicy: 'strict',
|
cookiePolicy: 'lax',
|
||||||
protocolUseSSL: false,
|
protocolUseSSL: false,
|
||||||
useCDN: false,
|
useCDN: false,
|
||||||
allowAnonymous: true,
|
allowAnonymous: true,
|
||||||
|
|
|
@ -53,7 +53,7 @@ if (['debug', 'verbose', 'info', 'warn', 'error'].includes(config.loglevel)) {
|
||||||
|
|
||||||
if (!['strict', 'lax', 'none'].includes(config.cookiePolicy)) {
|
if (!['strict', 'lax', 'none'].includes(config.cookiePolicy)) {
|
||||||
logger.error('Cookie SameSite policy %s does not exist. Falling back to strict. Available values are: strict, lax, none.', config.cookiePolicy)
|
logger.error('Cookie SameSite policy %s does not exist. Falling back to strict. Available values are: strict, lax, none.', config.cookiePolicy)
|
||||||
config.cookiePolicy = 'strict'
|
config.cookiePolicy = 'lax'
|
||||||
}
|
}
|
||||||
|
|
||||||
// load LDAP CA
|
// load LDAP CA
|
||||||
|
|
Loading…
Reference in a new issue