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

91
Visualizações
How to identify cross-site requests?

I am having issues in reading cookies sent/set by the server in the response headers (Set-Cookie)

I wanted to understand if the below 2 scenarios constitute a cross-site

  1. UI is running on http://localhost:3000 and server which sets the cookie is on say other local host http://172.10.25.63:8089

  2. UI is running on http://myui.app.dev.something.myhost.net and server which sets the cookie is on say other host http://myservice.app.dev.something.myhost.net

Do the below 2 scenarios have a cross-site request ?

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

0

For the purposes of Ajax, those are all cross-origin requests (which needs the useCredentials flag on the client and permission from CORS including a preflight on the server).

For the purposes of Cookies being available on both URLs, for case (1) they are different and for case (2) since they share a common set of domains (app.dev.somethings.myhost.net) they can share cookies if the domain parameter is set correctly in the Set-Cookie response header.

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