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

117
Visualizações
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 à 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