Bug Tracker

Opened 9 years ago

Closed 9 years ago

#15188 closed bug (notabug)

BUG: ajax async cors

Reported by: 176788304@… Owned by:
Priority: high Milestone: 1.next/2.next
Component: ajax Version: 2.1.0
Keywords: cors async Cc:
Blocked by: Blocking:


I use the following code to determine whether a new version can be used.

$.support.cors = true;
  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

Change History (2)

comment:1 Changed 9 years ago by 176788304@…

sorry, here is the example: http://jsfiddle.net/d39be/4/

comment:2 Changed 9 years ago by dmethvin

Resolution: notabug
Status: newclosed

Please ask for help on the forums or StackOverflow.

Note: See TracTickets for help on using tickets.