Adding custom header in HTTP before redirect
<p>Is there any way to add a custom HTTP header in a HTTP redirect triggered by javascript?  </p>

<p>I'm looking for something that would add a customer header element to any redirect. </p>

<p>There is a way to do it with AJAX requests:<br>
<a href="https://stackoverflow.com/questions/7686827/how-can-i-add-a-custom-http-header-to-ajax-request-with-js-or-jquery">How can I add a custom HTTP header to ajax request with js or jQuery?</a></p>