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

120
Vistas
Set cookie from sub domain

I have recently deployed my website to domain.com - and I am attempting to set the cookie from a response header from a request to api.domain.com.

Reading here Share cookie between subdomain and domain - it seemed simple that I just had to add the Domain to my set cookie that is being sent from api.domain.com

My set cookie header now looks like set-cookie: token=${token}; HttpOnly; Max-Age=5184000; Path=/; Domain=domain.com

But it is still not setting the token - or any header I try with the domain included

I've been trying to debug for a few hours but cannot see where I'm going wrong - though I didn't expect them to effect the setting of the cookie, I tried removing HttpOnly, Max-Age & Path

I've also tried setting the domain to Domain=.domain.com

about 4 years ago · Juan Pablo Isaza
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