I was silly enough to believe that all modern browsers supported CORS
(Cross-Origin Resource Sharing).
When my toy JavaScript tool didn't work on IE9 or Opera I found out that the former only supported CORS
through XDomainRequest
, which jQuery doesn't seem to support. Opera doesn't support CORS
at all yet.
Now jQuery has an abstract interface that does normal same domain AJAX queries, CORS
queries, and even JSONP
queries the same way.
Is there an extension to this interface that goes further making it work even with XDomainRequest
and falling back to JSONP
when CORS
isn't available?