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

143
Vistas
Apache2 Proxy cross-origin request cookies

I have a Proxy set on a folder in my subdomain /internal and I am attempting to get the cookies header on my Node.JS App from the request but it is unset when the request is made from a different origin but with the same domain.

Here is the proxy in my virtual host for api.example.com:

ProxyRequests on
ProxyPreserveHost on
ProxyPass /internal http://localhost:8760
ProxyPassReverse /internal http://localhost:8760

When I make an AJAX request from api.example.com to api.example.com/internal/ajax the cookie header is present when I console log it on my Node.JS App.

AJAX Request:

$.ajax({
    type: "GET",
    url: "https://api.example.com/internal/ajax",
    dataType: "json",
    cache: false
});

The problem is when I make the exact same AJAX request but from sample.example.com to api.example.com/internal/ajax it's like the cookie header gets deleted but every other header is still present

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