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

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

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