title: Any hosted versions of jQuery that have the 'Access-Control-Allow-Origin: *' header set?
body: <p>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 <a href="http://en.wikipedia.org/wiki/Same_origin_policy" rel="nofollow noreferrer">same origin policy</a>. After further testing I found that most browsers also support the <a href="http://www.w3.org/TR/access-control/" rel="nofollow noreferrer">Cross-Origin Resource Sharing</a> 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 <code>Access-Control-Allow-Origin: *</code> 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 <a href="http://www.seoconsultants.com/tools/headers" rel="nofollow noreferrer">http://www.seoconsultants.com/tools/headers</a> I have not found any sites that allow cross-origin access to the jQuery script. Here is the list I have tested so far:</p>
  
  <ul>
  <li><a href="http://www.asp.net/ajaxlibrary/CDN.ashx" rel="nofollow noreferrer">http://www.asp.net/ajaxlibrary/CDN.ashx</a></li>
  <li><a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery" rel="nofollow noreferrer">http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery</a></li>
  <li><a href="http://docs.jquery.com/Downloading_jQuery#CDN_Hosted_jQuery" rel="nofollow noreferrer">http://docs.jquery.com/Downloading_jQuery#CDN_Hosted_jQuery</a></li>
  </ul>
  
  <p>Are there any other hosted versions of jQuery that do allow cross origin access? I know that jQuery is usually loaded via a script tag (sometimes a dynamically created script tag), but in this specific case I have to use XmlHttpRequest and Eval to make sure it gets loaded into the correct scope. Google Chrome supports user scripts but does not support @require, which means the only way to use <a href="https://stackoverflow.com/questions/2246901/include-jquery-inside-greasemonkey-script-under-google-chrome/2626067#2626067">jquery in a user script in Google Chrome</a> is to embed it into the .user.js file or load and eval it via an XmlHttpRequest. Embedding is a less than optimal solution, and while Chrome Extensions allow you to include the jQuery js files in extensions I would prefer to stick with user scripts since they are much simpler and can work in more than just one browser. I have already submitted tickets with both the <a href="http://code.google.com/p/google-ajax-apis/issues/detail?id=427" rel="nofollow noreferrer">Google Ajax APIs</a> and <a href="http://forum.jquery.com/topic/cdn-hosted-jquery-does-not-allow-cross-domain-origin-access" rel="nofollow noreferrer">jQuery</a> teams to allow cross domain access to the CDN, but my guess is that I'll just have to host it myself for now.</p>