I am using express-session
and when setting the cookies secure property to true the cookie doesn’t set. The connection is in https.
Here is the code used to set the middleware
app.use(
session({
cookie: {
path: "/",
httpOnly: true,
maxAge: null,
secure: true
},
store: new memoryStore({
checkPeriod: 86400000
}),
resave: false,
saveUninitialized: true,
secret: process.env.COOKIE_SECRET,
name: "SESSION:ID"
})
);