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
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-*andLang) that adopt this pattern. Perhaps it's one that could be baked more deeply into the Client Hints infrastructure?/cc @igrigorik @yoavweiss @arturjanc