title: Getting IE to stop treating ajax as cross-domain, inside iframe
body: <p>I have the following setup:</p>
  
  <p><code>www.domain1.com/page1/</code> -- makes ajax POST request to <code>www.domain1.com/page2/</code></p>
  
  <p><code>www.domain1.com/page2/</code> -- returns json response</p>
  
  <hr>
  
  <p><code>www.domain2.com/page1/</code> -- embeds <code>www.domain1.com/page1/</code> in iframe</p>
  
  <hr>
  
  <p>When I load <code>www.domain1.com/page1/</code> the ajax request is made and everything works. When I load <code>www.domain2.com/page1/</code> in Chrome or Firefox, <code>www.domain1.com/page1/</code> is displayed in the iframe, and the ajax request is made fine.</p>
  
  <p>When I try to load <code>www.domain2.com/page1/</code> in IE7 / IE8, the ajax request gives a FORBIDDEN error -- it seems to be treating the request as cross-domain and blocking it, even though the request is being made from <code>www.domain1.com/page1/</code> to <code>www.domain1.com/page2/</code>.</p>
  
  <p>It works fine in IE when the request is GET, but not POST. How can I get IE to stop treating this as cross-domain, just because the entire flow is contained in an iframe?</p>
  
  <p>Thanks!</p>