From a47a071addab820687fc78296a1f5dc181c130ba Mon Sep 17 00:00:00 2001 From: Kaillr <125704518+Kaillr@users.noreply.github.com> Date: Sat, 19 Oct 2024 05:36:34 +0200 Subject: [PATCH] fix: set cookies to secure for HTTPS --- backend/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/server.js b/backend/server.js index 26bf9c6..747dc0f 100644 --- a/backend/server.js +++ b/backend/server.js @@ -39,7 +39,7 @@ app.use(session({ saveUninitialized: false, cookie: { maxAge: 1000 * 60 * 60 * 24, // Expires after 24 hours - secure: false // Secure only works over HTTPS + secure: true // Secure only works over HTTPS } }));