Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

express not setting cookies in Firefox but works in Chrome

  • No replies
  • 1 has this problem
  • 4 views
more options

I have this code below and the cookie sets in chrome but not in firefox This is running locally

app.use(
   session({
     store: new RedisStore({
       client: redis as any
     }),
     name: process.env.COOKIE_NAME,
     secret: process.env.SECRET,
     resave: false,
     saveUninitialized: false,
     cookie: {
       httpOnly: false,
       secure: false,
       maxAge: 1000 * 60 * 60 * 24 * 180
     }
   } as any)
 );
I have this code below and the cookie sets in chrome but not in firefox This is running locally app.use( session({ store: new RedisStore({ client: redis as any }), name: process.env.COOKIE_NAME, secret: process.env.SECRET, resave: false, saveUninitialized: false, cookie: { httpOnly: false, secure: false, maxAge: 1000 * 60 * 60 * 24 * 180 } } as any) );