Include error status code in console message for non-CORS response.

While CORS is concerned with the access control headers that come
back in the response and not its status code, an error response
(status code >= 400) containing no CORS headers is most likely an
indication of the server not being configured correctly.

To potentially help the user/developer more quickly diagnose that as
the problem, include the status code in the console message that's
emitted for the failed CORS resource sharing check.

R=
BUG=269192

Review URL: https://codereview.chromium.org/332633006

git-svn-id: svn://svn.chromium.org/blink/trunk@177116 bbb929c8-8fbe-4397-9dbb-9b2b20218538
6 files changed
tree: aee8f2fb3c9c8d4385e003fc8ebe24e64a809d11
  1. third_party/