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

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