title: Is it possible to set Referer header for XHR in HTML Application?
body: <p>I was making a simple desktop "informer" which supposed to read the JSON data from several webservices, do some basic transforms and present the result.
  However, I got stuck when found out what one of my webservices is very picky at certain request headers. As I narrowed down webservice really wants certain combination of <code>X-Requested-With</code> and <code>Referer</code> headers and returns <code>Bad Request</code> otherwise. So here goes the trouble: <a href="https://fetch.spec.whatwg.org/#forbidden-header-name" rel="nofollow">specification</a> forbids any modification to <code>Referer</code> (and IE follows the spec this time!) even despite the fact what my execution environment is supposedly trusted and privileged <a href="https://msdn.microsoft.com/en-us/library/ms536471(VS.85).aspx" rel="nofollow">HTML Application</a>.</p>
  
  <p>Is there any workaround? Please advise.</p>
  
  <hr>
  
  <p>FWIW, I'm using the following quirk to make regular XHR work in HTA context:</p>
  
  <pre><code>&lt;meta http-equiv="x-ua-compatible" content="ie=9"&gt;
  </code></pre>