Side navigation
#15188 closed bug (notabug)
Opened July 18, 2014 05:56AM UTC
Closed October 16, 2014 07:46PM UTC
BUG: ajax async cors
Reported by: | 176788304@qq.com | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 1.next/2.next |
Component: | ajax | Version: | 2.1.0 |
Keywords: | cors async | Cc: | |
Blocked by: | Blocking: |
Description
I use the following code to determine whether a new version can be used.
$.support.cors = true; $.ajax({ url: 'http://code.jquery.com/jquery-{version}.js', type: 'GET', async: false });
But produced a BUG:
"NetworkError: 405 Not Allowed - http://code.jquery.com/jquery-2.1.1.js"
jquery-2.1.1.js
NS_ERROR_FAILURE
jQuery requires a window with a document
Attachments (0)
Change History (2)
Changed July 18, 2014 08:14AM UTC by comment:1
Changed October 16, 2014 07:46PM UTC by comment:2
resolution: | → notabug |
---|---|
status: | new → closed |
Please ask for help on the forums or StackOverflow.
sorry, here is the example: http://jsfiddle.net/d39be/4/