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

Issue 192573011: Restrict CORS wildcard+credentials combination for http(s) only. (Closed)

Created:
6 years, 9 months ago by robwu
Modified:
6 years, 9 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews, Nate Chapin, gavinp+loader_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Restrict CORS wildcard+credentials combination for http(s) only. CORS-with-credentials are only defined for http(s) resources. Chromium uses Access-Control-Allow-Origin: * with the intention of whitelisting resources at certain origins for use in XMLHttpRequest and images with canvas. When the includeCredentials flag is set, these requests are blocked, even though the term "credentials" makes no sense for data:/chrome-extension:-URLs. This CL relaxes the wildcard check for non-http(s) resources, so that implementors can choose to use CORS regardless of whether credentials were requested. BUG=315152 TEST=Layout tests are already in CL https://codereview.chromium.org/54173002/ Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169391

Patch Set 1 #

Patch Set 2 : Check scheme of requested resource instead of securityOrigin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -8 lines) Patch
M Source/core/fetch/CrossOriginAccessControl.cpp View 1 1 chunk +10 lines, -8 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
robwu
This patch has no tests, because the tests will only be available once the two ...
6 years, 9 months ago (2014-03-10 23:08:04 UTC) #1
abarth-chromium
Why is the includeCredentials flag set?
6 years, 9 months ago (2014-03-11 00:52:52 UTC) #2
abarth-chromium
It seems dangerous to have this whitelist here... I guess we have a registry of ...
6 years, 9 months ago (2014-03-11 00:53:30 UTC) #3
robwu
On 2014/03/11 00:52:57, abarth wrote: > Why is the includeCredentials flag set? This flag is ...
6 years, 9 months ago (2014-03-11 09:20:11 UTC) #4
robwu
abarth: Could you take a look?
6 years, 9 months ago (2014-03-17 18:53:45 UTC) #5
abarth-chromium
lgtm ok
6 years, 9 months ago (2014-03-17 20:11:05 UTC) #6
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 9 months ago (2014-03-17 20:11:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob@robwu.nl/192573011/20001
6 years, 9 months ago (2014-03-17 20:11:13 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-17 20:38:22 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 9 months ago (2014-03-17 20:38:25 UTC) #10
robwu
The CQ bit was checked by rob@robwu.nl
6 years, 9 months ago (2014-03-17 20:40:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob@robwu.nl/192573011/20001
6 years, 9 months ago (2014-03-17 20:40:22 UTC) #12
commit-bot: I haz the power
6 years, 9 months ago (2014-03-17 21:05:32 UTC) #13
Message was sent while issue was closed.
Change committed as 169391

Powered by Google App Engine
This is Rietveld 408576698