concept error in category cors

appears as: n error, error, errors
CORS in Action: Creating and consuming cross-origin APIs

This is an excerpt from Manning's book CORS in Action: Creating and consuming cross-origin APIs.

Once the browser receives the response, it checks the response headers to verify that the cross-origin request is valid. If the request isn’t valid, the browser will log an error to the console, then fire the XMLHttpRequest’s onerror event. But because the response here is valid, the browser fires the XMLHttpRequest’s onload event:

Figure 2.6. Distinction between the response and response status code. The status code may have an error, but the onload event handler will still fire.