Any hosted versions of jQuery that have the 'Access-Control-Allow-Origin: *' header set?
- by Greg Bray
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:
http://www.asp.net/ajaxlibrary/CDN.ashx
http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery
http://docs.jquery.com/Downloading_jQuery#CDN_Hosted_jQuery
Are there any other hosted versions of jQuery that do allow cross origin access?