From 7f330aff2e1d3546e8dd1a3e4b037b9beb1cc7f0 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Tue, 7 Dec 2021 19:05:39 -0500 Subject: [PATCH] fix: secure session cookie (#2308) --- server/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/index.ts b/server/index.ts index 9baf22028..24c007f2a 100644 --- a/server/index.ts +++ b/server/index.ts @@ -139,6 +139,9 @@ app saveUninitialized: false, cookie: { maxAge: 1000 * 60 * 60 * 24 * 30, + httpOnly: true, + sameSite: true, + secure: 'auto', }, store: new TypeormStore({ cleanupLimit: 2,