WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
38346
Better error message for canceled resource loading due to cross-domain policy
https://bugs.webkit.org/show_bug.cgi?id=38346
Summary
Better error message for canceled resource loading due to cross-domain policy
Josh Schumacher
Reported
2010-04-29 14:08:43 PDT
If you perform a cross-domain AJAX request to a non-allowed domain, the Activity Window simply says 'canceled' and the debug console says, "Failed to load resource: cancelled". A more user-friendly error message would be appreciated stating that the request was canceled because it was a non-allowed cross-domain request. Sample code that should generate more a useful error message (utilizes jQuery for brevity): $('#test').load('
http://google.com
');
Attachments
Add attachment
proposed patch, testcase, etc.
Andrey Kosyakov
Comment 1
2011-03-11 01:42:08 PST
"Cancel" message removed by
r80832
(
bug 55764
) Origin policy error message is now also fixed (added a test in
r80832
, see LayoutTests/http/tests/inspector/console-xhr-logging.html)
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug