Skip to content

CH processing, cross-origin redirects and service workers #800

@yoavweiss

Description

@yoavweiss

During an IRC discussion about #773, @annevk brought up a few points we need to consider when it comes to CH processing:

  • If we want to make sure that CH headers are not sent on cross-origin request headers, including cross-origin redirects, we need to have origin checks relatively low in the stack and only add those headers there.
  • However, that would mean that the headers will not be exposed to service workers, which would limit some of their use-cases.
  • An alternative would be to add the headers up the stack and remove them further down for cross-origin redirects, but that would mean we'd also remove them for user-added CH headers. It'd also mean that CH is the first feature introducing header removal.

So, we need to decide on the trade-off between privacy, usability and functionality here:

  • How awful would it be to send CH to cross-origin redirects?
  • If the answer to the above is "really awful", we need to find a way to avoid doing that without harming SW use of CH as well as user-added CH headers. Personally, I think the SW use case is more important than the user-added headers case.

@igrigorik @arturjanc - thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions