I am trying to set secure cookies, it does not work at first try.
I am using
secret: sessionSecret,
resave: false,
saveUninitialized: true,
cookie: {
secure: true,
httpOnly: true,
domain: 'beintoo.net',
expires: expiryDate
}
I found function issecure relying on req.connection.encrypted here but it seems not supported anymore, see expressjs/express#1864
Any hint?
I am trying to set secure cookies, it does not work at first try.
I am using
I found function
issecurerelying onreq.connection.encryptedhere but it seems not supported anymore, see expressjs/express#1864Any hint?