router.get('/pls-redirect', function (req, res, next) {
res.redirect("https://www.google.com")
});
Given the above express route definition, when I go to mydomain/pls-redirect, it first hits a HTTP 302 Found, with Location set to https://www.google.com.
All is good, the browser then makes a request to https://www.google.com, but why does it not set the Request header.Referrer field to say "mydomain/pls-redirect". Is there a way to achieve this?