New issue
Advanced search Search tips

Issue 613483 link

Starred by 5 users

Issue metadata

Status: Available
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Blocked on:
issue 715640



Sign in to add a comment

x-chrome-connected can be added to Access-Control-Request-Headers when service worker intercepts a request

Project Member Reported by falken@chromium.org, May 20 2016

Issue description

See internal bug b/28803517

When #enable-account-consistency is enabled to chrome://flags, Chrome adds the x-chrome-connected header to some requests.

When a service worker intercepts such a request and later calls fetch(request), and this causes a preflight request to be built, the x-chrome-connected header is added to Access-Control-Request-Headers.

This can cause sites to break when they use service worker, since the server does not expect this header in ACRH.

rogerta@: How likely is the x-chrome-connected header to be added in the wild? Is it is here to stay? What's the level of support and usage of #enable-account-consistency?
 

Comment 1 by falken@chromium.org, May 20 2016

Components: Services>SignIn
rogerta: Is the x-chrome-connected header sent only if #enable-account-consistency is enabled?
Project Member

Comment 3 by sheriffbot@chromium.org, Dec 19 2016

Status: Available (was: Assigned)
--Chrome Identity automated triaging--

This bug is Assigned and has gone one month without any activity, so it is being moved to Available to indicate that it is not actively being worked on. If you are working on this bug, please mark yourself as the owner and move back to Assigned. Please see https://goo.gl/78kbny for more details. Please remove the Services>SignIn or UI>Browser>Profiles components if this bug isn't related to Chrome Identity.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
I think we just need to call "x-chrome-connected" a "simple header" and it'll be excluded from ACRH thanks to  issue 601092 .

These means even if script adds the header it won't appear in ACRH but it's the same thing we're doing for the Chrome-injected Save-Data header.

Comment 5 by falken@chromium.org, Apr 13 2017

Apparently we should also whitelist x-wap-profile

Comment 6 by falken@chromium.org, Apr 14 2017

Status: Started (was: Available)
#2: Looks it's set also when IsDriveOrigin() or gaia::IsGaiaSignonRealm() returns true (see IsUrlEligibleForXChromeConnectedHeader()), but yes, turning on #enable-account-consistency lets Chrome send it widely to various google and youtube domains.

#4: I'm not sure if allowing scripts to send a x-chrome-connected header with its value set to a script authored value without getting clear approval from the server is fine. Can we check this point with the account/Identity consistency team (if rogerta is busy, msarda?)?

Comment 8 by falken@chromium.org, Apr 18 2017

Status: WontFix (was: Started)
Sorry for causing thrashing. I think this should be fixed automatically when servicified service worker arrives, because the header injection would come after the request has been directed to service worker. Since this isn't blocking anyone currently we can probably wait until then. The alternative would be to add x-chrome-connected as a special whitelist in Blink which is bad for code health and could have security implications.
Issue 851142 has been merged into this issue.
Blockedon: 715640
Status: Assigned (was: WontFix)
I expect this should be fixed with service worker + NetworkService ( issue 715640 ).
Project Member

Comment 11 by sheriffbot@chromium.org, Jul 9

Status: Available (was: Assigned)
--Chrome Identity automated triaging--

This bug is Assigned and has gone one month without any activity, so it is being moved to Available to indicate that it is not actively being worked on. If you are working on this bug, please mark yourself as the owner and move back to Assigned. Please see https://goo.gl/78kbny for more details. Please remove the Services>SignIn or UI>Browser>Profiles components if this bug isn't related to Chrome Identity.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Assigned (was: Available)
Project Member

Comment 13 by sheriffbot@chromium.org, Sep 3

Status: Available (was: Assigned)
--Chrome Identity automated triaging--

This bug is Assigned and has gone one month without any activity, so it is being moved to Available to indicate that it is not actively being worked on. If you are working on this bug, please mark yourself as the owner and move back to Assigned. Please see https://goo.gl/78kbny for more details. Please remove the Services>SignIn or UI>Browser>Profiles components if this bug isn't related to Chrome Identity.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment