Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

107
Vistas
Cannot find `Set-Cookie` in Chrome debugger's `Network` tag

The steps:

  • Clear the cookies.
  • Click the button to POST GraphQL request.
  • Find that there is a cookie: jwt=I%20AM%20peterlitszo%40gmail.com.

I am sure that the cookie is setted by response:

const result = res(
   // It will set header with `Set-Cookie: jwt=I%20AM%20peterlitszo%40gmail.com`
  ctx.cookie('jwt', `I AM ${email}`),
  ctx.data({
    users: [],
  }),
);

But I cannot find Set-Cookie in Chrome debugger's Network tag.

enter image description here

I am no sure what happen, do Set-Cookie cannot be show in Devtool? I cannot find information about it with Google.

Not only Chrome, I cannot find it in Firefox. :(

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Sorry, my bad.

Here is answer, https://mswjs.io/docs/recipes/cookies#mock-response-cookies :

Note that you still won't be able to access the Set-Cookie header on the response, as the cookie is set on the document directly, bypassing network.

I am using MSW to mock data, also mock the Set-Cookie.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda