I have a service A that, when reaching it with url www.y.com (for example) returns a 302 redirect with Location header, with url www.x.com.
So, When Im using my chrome browser and go to www.y.com, I get a redirect to www.x.com, but when I use chrome dev tools and check document.referrer I see an empty referrer ('').
I tried to add Referer header (with www.x.com or Referrer-Policy header with origin but could not make document.referrer to return the desired www.y.com.
I have control on service A and domain www.x.com, I also control the request to service A (can add headers)
Im expecting to see www.x.com when checking document.referrer