Reputation: 944
So, this happened. Quick bullet point list of facts:
So that's how things are going. So far, I've checked a few alternatives that do not work. Here's a list of them and why it wouldn't help in this case: - JSONP, it only allows GET requests. - easyXDM, it does not allow custom headers to be sent. - OpenAjax Hub, documentation seemed confusing and scarce, but it seems that it has no support for custom headers either.
So here's the question: is there any solution I am missing? My only hope right now is to build a custom swf and override jQuery's $.ajax function to be able to use it as a transport, but am unsure if it'll work. In theory, it should. In practice... well, that's another matter entirely. SO before delving in the depths of swf hell, I thought I might ask if anyone ever faced this problem before and have any form of advice?
Upvotes: 2
Views: 139
Reputation: 26696
You're missing an embedded iframe, whose src lives on the other domain, and using window.postMessage to go back and forth between the two windows, where the embedded iframe does all of the XHR for your subdomain, and then sends back a custom-wrapped response with all of the header/data you would typically see in CORS.
You'll then have your IE8/9 support.
Upvotes: 2