I have the following setup:
www.domain1.com/page1/ - makes an ajax POST request for www.domain1.com/page2/
www.domain1.com/page2/ - returns json response
www.domain2.com/page1/- embeds www.domain1.com/page1/in iframe
When I load www.domain1.com/page1/, ajax request is executed and everything works. When I load www.domain2.com/page1/in Chrome or Firefox, the iframe is displayed www.domain1.com/page1/and the ajax request is executing fine.
When I try to load www.domain2.com/page1/in IE7 / IE8, the ajax request throws a FORBIDDEN error - it seems that it treats the request as cross-domain and blocks it, even if the request is executed from www.domain1.com/page1/before www.domain1.com/page2/.
It works fine in IE when the request is GET, but not POST. How can I make IE stop treating this as a cross-domain, just because the entire stream is contained in an iframe?
Thank!