Fixed misleading console error message for multiple CORS headers

This commit is contained in:
janekptacijarabaci 2018-07-31 07:02:39 +02:00 • committed by Roy Tam
commit acb5d5839b
2 changed files with 2 additions and 1 deletions

View file

@ -577,7 +577,7 @@ nsCORSListenerProxy::CheckRequestApproved(nsIRequest* aRequest)
// check for duplicate headers
rv = http->VisitOriginalResponseHeaders(visitor);
if (NS_FAILED(rv)) {
LogBlockedRequest(aRequest, "CORSAllowOriginNotMatchingOrigin", nullptr);
LogBlockedRequest(aRequest, "CORSMultipleAllowOriginNotAllowed", nullptr);
return rv;
}