Search and Top Navigation
#5509 closed enhancement (notabug)
Opened April 13, 2010 01:05AM UTC
Closed April 14, 2010 12:56AM UTC
Last modified October 11, 2012 09:15PM UTC
CDN Hosted jQuery does not allow cross domain origin access
Reported by: | gbrayut | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.core | Version: | 1.8 |
Keywords: | CDN | Cc: | |
Blocked by: | Blocking: |
Description
I am trying to use the hosted version of jQuery in a userscript, but the only way I am able to do so is by loading it using an xmlhttpRequest. Since xmlhttpRequest restricts access using the same-origin policy I would need to either host it on the same domain as the website (not feasible for a user-script) or use a CDN that includes the
Access-Control-Allow-Origin: *
header defined by Cross-Origin Resource Sharing. Is there any way to change the code.jquery.com CDN so that it will set this header and allow cross-origin access to jQuery?
This is the bug tracker for jQuery UI, not jQuery. Please ask on the forums.