title: Change window location href in subdomain iframe
body: <p>I have <code>a.example.com</code> and <code>b.example.com</code>;</p>
  <p>When I put <code>b.example.com/foo</code> as iframe in <code>a.example.com</code>:</p>
  <pre><code>&lt;iframe src='b.example.com/foo'&gt;&lt;/iframe&gt;`
  </code></pre>
  <p>the <code>window.location.href</code> value accessible from <code>b.example.com</code> is ... <code>a.example.com/foo</code> (??)...</p>
  <p>The problem is - I use an external library in <code>b.example.com/foo</code> that checks for <code>window.location.href</code> and it gets incorrect information.</p>
  <p>For this scenario it appears to me that I should iframe <code>/foo</code> content on a completely different domain like:
  <code>anotherexample.com/foo</code>, where the <code>window.location.href</code> would actually point to <code>anotherexample.com/foo</code>.</p>
  <p>How can I force window object in iframe to actually use its subdomain instead of parent domain with added parameter?</p>