Closed Bug 760338 Opened 8 years ago Closed 7 years ago

Display an error message in the console when a CORS validation failure occurs

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set

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.
Jonas, want to write some code ;)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 713980
You need to log in before you can comment on or make changes to this bug.