07-17-2012, 09:55 PM
07-17-2012, 11:50 PM
Different security models in the two browsers.
The one that allows it sees sitea.domain.com as indeed coming from the same domain as siteb.domain.com.
The one that disallows it is treating them as separate domains.
And easy answer would be to put a proxy server (maybe written in PHP or ASP or...) on sitea.domain that acts to pull the data from siteb.domain. So that the XMLHTTPRequest would then hit the proxy on sitea.domain.
As to why the different security models: No idea. As the browser makers.
07-18-2012, 01:19 AM
Hi Kenneth Heeres,
07-18-2012, 06:24 AM
if you control both domains then simply add the proper CORS headers to the page(s) you want to fetch with ajax:
see https://developer.mozilla.org/en/http_access_control for info