Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Feature Policy to opt-in, and not just allow #23

Open
eeeps opened this issue Mar 5, 2020 · 0 comments
Open

Using Feature Policy to opt-in, and not just allow #23

eeeps opened this issue Mar 5, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@eeeps
Copy link
Collaborator

eeeps commented Mar 5, 2020

Right now, in order to send third parties client hints, you must:

  1. Allow the sending of specific hints to specific origins (via Feature-Policy) (by default, only the first party is allowed)
  2. Opt into sending specific hints (via Accept-CH)

① alone does nothing. ② seems awful redundant, in third party contexts; why would I ever set something like:

Feature-Policy: ch-dpr image-host.whatever 'self'

without then doing

Accept-CH: DPR

?

Can we make ① do ②, automatically?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants