Merge branch 'fix/sessionCookies'

This commit is contained in:
Sheogorath 2020-06-08 16:30:26 +02:00
commit 2890022d4d
No known key found for this signature in database
GPG key ID: C9B1C80737B9CE18

3
app.js
View file

@ -140,7 +140,8 @@ app.use(session({
rolling: true, // reset maxAge on every response
cookie: {
maxAge: config.sessionLife,
sameSite: 'strict'
sameSite: 'strict',
secure: config.useSSL || config.protocolUseSSL || false
},
store: sessionStore
}))