Any hosted versions of jQuery that have the 'Access-Control-Allow-Origin: *' header set?

Posted by Greg Bray on Stack Overflow See other posts from Stack Overflow or by Greg Bray
Published on 2010-04-13T00:57:48Z Indexed on 2010/04/13 1:02 UTC
Read the original article Hit count: 549

Filed under:
|

I have been working with jQuery recently and ran into a problem where I couldn't include it in a userscript because xmlhttpRequest uses the same origin policy. After further testing I found that most browsers also support the Cross-Origin Resource Sharing access control defined by W3C as a workaround for issues with same origin policy. I tested this by hosting the jQuery script on a local web server that included the Access-Control-Allow-Origin: * http header, which allowed the script to be downloaded using xmlhttpRequest so that it could be included in my userscript. I'd like to use a hosted version of jQuery when releasing the script, but so far testing with tools like http://www.seoconsultants.com/tools/headers I have not found any sites that allow cross-origin access to the jQuery script. Here is the list I have tested so far:

Are there any other hosted versions of jQuery that do allow cross origin access?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about same-origin-policy