title: How does IE11 populate window.location.origin?
body: <p>I have an issue in a <strong>non production environment</strong> in <strong>Internet Explorer 11</strong> where</p>
  <p><code>window.location.origin</code> is <code>undefined</code>.</p>
  <p>However, in the <strong>production environment</strong> this value actually returns</p>
  <p><code>window.location.origin = http://www.myproductionwebsite.com</code></p>
  <p>This issue only exists in Internet Explorer and works fine in Chrome and Firefox across production and non production environments, which has lead me to believe its the way that the <strong>Chakra</strong> JavaScript Engine in IE11 populates <code>origin</code>.</p>
  <p>I have also looked at the request and response headers across production and non production environment and all the parameters are identical.</p>
  <p>How does <strong>Internet Explorer 11</strong> calculate <code>window.location.origin</code> differently to Chrome or Firefox?</p>