Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

105
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda