summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-26 12:49:10 +0200
committerTor Andersson <tor@ccxvii.net>2021-06-26 12:49:10 +0200
commitf1f4a8291646b02b37aaf667615c1e70aebaa881 (patch)
treec5c101c810a89374d500660188745a1bd1ebad1e /server.js
parentc479b34bc340aaec7df8926321b47cdb5497f2dc (diff)
downloadserver-f1f4a8291646b02b37aaf667615c1e70aebaa881.tar.gz
Set strict cookies.
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index 43e81fd..ed945b7 100644
--- a/server.js
+++ b/server.js
@@ -62,7 +62,7 @@ app.use(express_session({
rolling: true,
saveUninitialized: false,
store: session_store,
- cookie: { maxAge: 7 * 24 * 60 * 60 * 1000 }
+ cookie: { maxAge: 7 * 24 * 60 * 60 * 1000, sameSite: 'strict' }
}));
app.use(connect_flash());