express not setting cookies in Firefox but works in Chrome
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)
);