summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-08-05 13:44:52 +0200
committerTor Andersson <tor@ccxvii.net>2021-08-05 13:45:10 +0200
commitdc7bc039757225106a7087821dc96d4ac3abe284 (patch)
treedb57b4ef829669a2ac01215379807380b95089b4
parent924e29ebd3301d0c996397644c1a9a77d4f1e300 (diff)
downloadserver-dc7bc039757225106a7087821dc96d4ac3abe284.tar.gz
Set cookie SameSite: Lax.
-rw-r--r--server.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/server.js b/server.js
index c95ffd9..5e90135 100644
--- a/server.js
+++ b/server.js
@@ -70,7 +70,10 @@ 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: 'lax',
+ }
}));
app.use(connect_flash());