mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
Merge branch 'fix/sessionCookies'
This commit is contained in:
commit
2890022d4d
1 changed files with 2 additions and 1 deletions
3
app.js
3
app.js
|
@ -140,7 +140,8 @@ app.use(session({
|
||||||
rolling: true, // reset maxAge on every response
|
rolling: true, // reset maxAge on every response
|
||||||
cookie: {
|
cookie: {
|
||||||
maxAge: config.sessionLife,
|
maxAge: config.sessionLife,
|
||||||
sameSite: 'strict'
|
sameSite: 'strict',
|
||||||
|
secure: config.useSSL || config.protocolUseSSL || false
|
||||||
},
|
},
|
||||||
store: sessionStore
|
store: sessionStore
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Reference in a new issue