Closed
Bug 760338
Opened 12 years ago
Closed 11 years ago
Display an error message in the console when a CORS validation failure occurs
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 713980
People
(Reporter: jon, Unassigned)
References
Details
This is a follow-up on bug 682299. It would be helpful to a developer to know via the web console when a resource fails to load due to CORS validation.
+1 for this. I spent an hour trying to figure out why my cross-site ajax request failed (the fact that the console was showing status 200 OK only added to the confusion).
I then tried it in Chrome and got the error right away:
> XMLHttpRequest cannot load http://example.com/api/. Origin http://example.com is not allowed by Access-Control-Allow-Origin.
Comment 2•11 years ago
|
||
Jonas, want to write some code ;)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•