Skip to content

Consider a Sec-CH- prefix for client hint headers #716

@mikewest

Description

@mikewest

In w3ctag/design-reviews#320, @annevk (re-)raised the question of Client Hints' integration with CORS. One suggestion in that thread is to prefix headers with Sec-CH-, which on the one hand makes them trivial to add en masse to the CORS-safelisted list, and on the other prevents JavaScript from setting their values (which in turn limits the risk associated with adding them to the CORS-safelisted list in the first place).

I have two concrete proposals for hints (UA-* and Lang) that adopt this pattern. Perhaps it's one that could be baked more deeply into the Client Hints infrastructure?

/cc @igrigorik @yoavweiss @arturjanc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions