Bug Tracker

Opened 9 years ago

Closed 9 years ago

#6864 closed bug (invalid)

Failed CORS requests report status success due to xhr.status === 0

Reported by: friedcell Owned by:
Priority: Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: cors, opera Cc:
Blocked by: Blocking:

Description

CORS requests in Gecko/Webkit that fail (due to absent header on the response) report status 0. Due to an Opera 9.5 workaround jQuery will deem them successful and trigger success handlers with empty data.

Currently the workaround is to know when you're making a CORS request and check xhr.status yourself and ignoring Opera, but that doesn't seem like a proper solution...

Change History (1)

comment:1 Changed 9 years ago by dmethvin

Resolution: invalid
Status: newclosed

Can you reopen with a test case and some further discussion? Is this on the shipping version of these browsers?

Is this the correct reference? http://www.w3.org/TR/cors/

Note: See TracTickets for help on using tickets.