window.location.href doesn’t adding referer header when executed inside html wrapper but running that in console is adding referer header. Why?
I have two subdomains, let’s call them x.example.com and y.example.com. When a user requests x.example.com, the server redirects them to y.example.com.
On y.example.com, there’s a feature that displays specific content if the referer header matches a certain value. However, when the request comes to y.example.com after the redirection, it doesn’t have any referer header attached to it.
I’m using Django on the backend to handle the redirection with HttpResponseRedirect(“y.example.com”).