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

262
Visualizações
Can't Access or Delete Cookie sent from Express in Client

My Express server is sending a cookie to the client that is not httpOnly. Even so, the client doesn't have access to the cookie on document.cookie nor is the cookie showing up in the Application tab on chrome dev tools. However, I can see the cookie in Chrome settings Cookie and Site-data page. My original problem was trying to delete the cookie on the client side in the case the client becomes offline but I can't do that if I can't access the cookie in the first place.

On the server: res.cookie("mycookie", "test", {httpOnly: false}); On the client document.cookie is undefined

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Turns out the issue was with NGINX. www.mydomain.com and mydomain.com were both serving the same webpage. Cookies are tied to their domain and technically www.mydomain.com is different from mydomain.com. Added server blocks to my website config in NGINX to forward all traffic to www.mydomain.com to mydomain.com.

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