Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Learn More

express not setting cookies in Firefox but works in Chrome

  • Keine Antworten
  • 1 hat dieses Problem
  • 4 Aufrufe
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) );