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

Issue 2633423003: Leave out empty-valued Access-Control-Request-Headers: on preflights. (Closed)

Created:
3 years, 11 months ago by sof
Modified:
3 years, 11 months ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, Nate Chapin, shimazu+serviceworker_chromium.org, serviceworker-reviews, tyoshino+watch_chromium.org, nhiroki, kinuko+serviceworker, gavinp+loader_chromium.org, loading-reviews+fetch_chromium.org, blink-reviews, horo+watch_chromium.org, falken+watch_chromium.org, tzik
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Leave out empty-valued Access-Control-Request-Headers: on preflights. Following https://github.com/whatwg/fetch/issues/459 , the above preflight header should not be included if the request following CORS has no headers to enumerate in a preflight. R=tyoshino,yhirano BUG=633729 Review-Url: https://codereview.chromium.org/2633423003 Cr-Commit-Position: refs/heads/master@{#444303} Committed: https://chromium.googlesource.com/chromium/src/+/cf55a356c36b96ce9ee4bd6aa33235c87412a3aa

Patch Set 1 #

Patch Set 2 : sync unit tests #

Total comments: 8

Patch Set 3 : explicitly include safe headers in the (test) request #

Messages

Total messages: 26 (16 generated)
sof
please take a look.
3 years, 11 months ago (2017-01-17 21:56:48 UTC) #7
yhirano
https://codereview.chromium.org/2633423003/diff/20001/third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp File third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp (right): https://codereview.chromium.org/2633423003/diff/20001/third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp#newcode111 third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp:111: if (request.httpHeaderFields().size()) { Do we need this outer branch? ...
3 years, 11 months ago (2017-01-18 05:41:55 UTC) #10
tyoshino (SeeGerritForStatus)
Thank you for fixing this. https://codereview.chromium.org/2633423003/diff/20001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js File third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js (right): https://codereview.chromium.org/2633423003/diff/20001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js#newcode177 third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js:177: [checkMethod]], This test is ...
3 years, 11 months ago (2017-01-18 06:00:29 UTC) #11
sof
https://codereview.chromium.org/2633423003/diff/20001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js File third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js (right): https://codereview.chromium.org/2633423003/diff/20001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js#newcode177 third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js:177: [checkMethod]], On 2017/01/18 06:00:29, tyoshino wrote: > This test ...
3 years, 11 months ago (2017-01-18 06:26:49 UTC) #12
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/2633423003/diff/20001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js File third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js (right): https://codereview.chromium.org/2633423003/diff/20001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js#newcode177 third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js:177: [checkMethod]], On 2017/01/18 06:26:49, sof wrote: > On 2017/01/18 ...
3 years, 11 months ago (2017-01-18 06:49:02 UTC) #13
sof
https://codereview.chromium.org/2633423003/diff/20001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js File third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js (right): https://codereview.chromium.org/2633423003/diff/20001/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js#newcode177 third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js:177: [checkMethod]], On 2017/01/18 06:49:02, tyoshino wrote: > On 2017/01/18 ...
3 years, 11 months ago (2017-01-18 06:57:48 UTC) #15
tyoshino (SeeGerritForStatus)
lgtm
3 years, 11 months ago (2017-01-18 07:20:55 UTC) #17
yhirano
lgtm
3 years, 11 months ago (2017-01-18 07:23:08 UTC) #18
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/2633423003/40001
3 years, 11 months ago (2017-01-18 08:26:24 UTC) #23
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 08:30:33 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/cf55a356c36b96ce9ee4bd6aa332...

Powered by Google App Engine
This is Rietveld 408576698