-
Notifications
You must be signed in to change notification settings - Fork 210
Secure flag is ignored #181
Copy link
Copy link
Open
Description
I have following setup for cookie session middleware in my express app:
app.use(
cookieSession({
name: '__session',
keys: [env.COOKIE_SIGNING_SECRET],
maxAge: COOKIE_MAX_AGE,
sameSite: 'none',
httpOnly: true,
secure: false,
signed: true,
})
);When a request is made from client, the response doesn't have Secure attribute in Set Cookie header. Please refer to attached screenshot for more details.
Because of the missing Secure attribute chrome doesn't store the cookie. It works fine in Safari and Firefox. How do i set the value of secure attribute?
Thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels