Add config option for cookie SameSite policy
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
2
app.js
2
app.js
@@ -147,7 +147,7 @@ app.use(session({
|
||||
rolling: true, // reset maxAge on every response
|
||||
cookie: {
|
||||
maxAge: config.sessionLife,
|
||||
sameSite: 'lax',
|
||||
sameSite: config.cookiePolicy, // be careful: setting a SameSite value of none without https breaks the editor
|
||||
secure: config.useSSL || config.protocolUseSSL || false
|
||||
},
|
||||
store: sessionStore
|
||||
|
||||
Reference in New Issue
Block a user