summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheogorath2020-06-08 16:30:26 +0200
committerSheogorath2020-06-08 16:30:26 +0200
commit2890022d4d2a8bd04cd6b8895e2e28233dcdd767 (patch)
tree2bfdf2c1dd0aae4527b6b6b16b302b3666ad2d49
parent7e02a92c457c8879f1d69c4699ad06604d4e1b65 (diff)
parentcdd18aebfdfe50fa1b26b9fa7913de547ff8c78f (diff)
Merge branch 'fix/sessionCookies'
Diffstat (limited to '')
-rw-r--r--app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app.js b/app.js
index 265eb475..c65b8483 100644
--- a/app.js
+++ b/app.js
@@ -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
}))