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

258
Vistas
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 Respuestas
Responde la pregunta

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 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