| Index: third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp
|
| diff --git a/third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp b/third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp
|
| index 49b16403813c70ecd395e4cd0f9e708df6755c4d..5385c8d885640dbbad7760972069eb3450f7cb09 100644
|
| --- a/third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp
|
| +++ b/third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp
|
| @@ -281,9 +281,10 @@ bool passesPreflightStatusCheck(const ResourceResponse& response,
|
| // Fetch API Spec: https://fetch.spec.whatwg.org/#cors-preflight-fetch
|
| // CORS Spec: http://www.w3.org/TR/cors/#cross-origin-request-with-preflight-0
|
| // https://crbug.com/452394
|
| - if (response.httpStatusCode() < 200 || response.httpStatusCode() >= 300) {
|
| + int statusCode = response.httpStatusCode();
|
| + if (!FetchUtils::isOkStatus(statusCode)) {
|
| errorDescription = "Response for preflight has invalid HTTP status code " +
|
| - String::number(response.httpStatusCode());
|
| + String::number(statusCode);
|
| return false;
|
| }
|
|
|
|
|