Skip to content

should sec-ch-ua headers be visible in FetchEvent.request.headers #1525

@wanderview

Description

@wanderview

Currently the spec requires that user-agent header be set after the service worker fetch handler, so the user-agent header is not visible on FetchEvent.request.

Client hints headers in general, however, are added prior to service worker processing:

https://wicg.github.io/client-hints-infrastructure/#fetch

This results in the new sec-ch-ua headers appearing on FetchEvent.request which seems inconsistent with not exposing user-agent.

What do folks think we should do here? Accept the difference between sec-ch-ua and user-agent? Align sec-ch-ua with current user-agent behavior?

@annevk @jakearchibald @youennf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions