summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
}))