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