diff --git a/index.js b/index.js index 687a24f..8bffdc4 100644 --- a/index.js +++ b/index.js @@ -37,6 +37,7 @@ const sessionMiddleware = session({ secret: uuidv4(), resave: true, saveUninitialized: true, + cookie: { secure: process.env.cookie_secure === "true" ? true : false } }); app.use(sessionMiddleware);