Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Issue 2419063002: Mention withCredentials attribute in the error message about CORS check failure (Closed)

Created:
4 years, 2 months ago by tyoshino (SeeGerritForStatus)
Modified:
4 years, 2 months ago
Reviewers:
yhirano
CC:
chromium-reviews, blink-reviews, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mention withCredentials attribute in the error message about CORS check failure The spec phrase "credentials flag" is not so useful for those who are not familiar with the Fetch spec. Mention the withCredentials attribute so that XHR users can understand what's wrong with their code easily. I tried to show this only for XHR by using the RequestContext value, but RequestContextXMLHttpRequest is used not only for XHR but for EventSource. So, I refrained from taking the approach. R=yhirano@chromium.org BUG=566239 Committed: https://crrev.com/49a0d064be13af14d84df7de0fc632820b4701d9 Cr-Commit-Position: refs/heads/master@{#426494}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed #8 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -24 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/eventsource/eventsource-cors-with-credentials-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/eventsource/workers/eventsource-cors-with-credentials-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/img-crossorigin-redirect-anonymous-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-stylesheet-use-credentials-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/script-crossorigin-redirect-anonymous-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/script-crossorigin-redirect-credentials-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/access-control-and-redirects-async-same-origin-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/request-from-popup-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp View 1 2 chunks +16 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
tyoshino (SeeGerritForStatus)
4 years, 2 months ago (2016-10-17 05:06:18 UTC) #7
yhirano
https://codereview.chromium.org/2419063002/diff/1/third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp File third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp (right): https://codereview.chromium.org/2419063002/diff/1/third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp#newcode257 third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp:257: "The request's credentials flag (determined by withCredentials for " ...
4 years, 2 months ago (2016-10-20 04:55:52 UTC) #8
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/2419063002/diff/1/third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp File third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp (right): https://codereview.chromium.org/2419063002/diff/1/third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp#newcode257 third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp:257: "The request's credentials flag (determined by withCredentials for " ...
4 years, 2 months ago (2016-10-20 10:36:33 UTC) #9
yhirano
lgtm
4 years, 2 months ago (2016-10-20 10:54:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2419063002/20001
4 years, 2 months ago (2016-10-20 14:35:13 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-20 16:23:49 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:18:52 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/49a0d064be13af14d84df7de0fc632820b4701d9
Cr-Commit-Position: refs/heads/master@{#426494}

Powered by Google App Engine
This is Rietveld 408576698