I'm afraid all the answers are wrong and misleading!
Cannot be redirected to a page with custom headers, no matter which language or frame you use. In other words, there is no way to trigger an HTTP redirect and force the client (browser) to add a custom header.
, , header() . . , , .
, HTTP- , - Javascript XMLHttpRequest. ajax CORS .
, HTTP-, async, XMLHttpRequest. , .
, .