Opened 13 years ago
Closed 13 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...
Note: See
TracTickets for help on using
tickets.
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/