-
Notifications
You must be signed in to change notification settings - Fork 23.2k
Technical review: Document ch-ua-high-entropy-values permissions-policy #42880
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
Merged
hamishwillee
merged 7 commits into
mdn:main
from
chrisdavidmills:ch-ua-high-entropy-values-policy
Jan 26, 2026
+99
−9
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3ff633a
Document ch-ua-high-entropy-values permissions-policy
chrisdavidmills 5f0690c
Update files/en-us/web/api/navigatoruadata/gethighentropyvalues/index.md
hamishwillee de61507
Update files/en-us/web/api/navigatoruadata/gethighentropyvalues/index.md
hamishwillee 6e1bf42
Method description - make it clear where the low/high entropy terms o…
hamishwillee ad03a08
Merge branch 'main' into ch-ua-high-entropy-values-policy
chrisdavidmills fdee818
Fixes for hamish review comments
chrisdavidmills 262fd37
Update files/en-us/web/api/navigatoruadata/gethighentropyvalues/index.md
hamishwillee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
...eb/http/reference/headers/permissions-policy/ch-ua-high-entropy-values/index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| --- | ||
| title: "Permissions-Policy: ch-ua-high-entropy-values directive" | ||
| short-title: ch-ua-high-entropy-values | ||
| slug: Web/HTTP/Reference/Headers/Permissions-Policy/ch-ua-high-entropy-values | ||
| page-type: http-permissions-policy-directive | ||
| status: | ||
| - experimental | ||
| browser-compat: http.headers.Permissions-Policy.ch-ua-high-entropy-values | ||
| sidebar: http | ||
| --- | ||
|
|
||
| {{SeeCompatTable}} | ||
|
|
||
| The HTTP {{HTTPHeader("Permissions-Policy")}} header `ch-ua-high-entropy-values` directive controls whether or not the document is permitted to use the {{domxref("NavigatorUAData.getHighEntropyValues()")}} method to retrieve high-entropy user-agent data. | ||
|
|
||
| If the permission is not allowed, the method will only return the `brands`, `mobile`, and `platform` low-entropy data. | ||
|
|
||
| ## Syntax | ||
|
|
||
| ```http | ||
| Permissions-Policy: ch-ua-high-entropy-values=<allowlist>; | ||
| ``` | ||
|
|
||
| - `<allowlist>` | ||
| - : A list of origins for which permission is granted to use the feature. See [`Permissions-Policy` > Syntax](/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy#syntax) for more details. | ||
|
|
||
| ## Default policy | ||
|
|
||
| The default allowlist for `ch-ua-high-entropy-values` is `*`. | ||
|
|
||
|
hamishwillee marked this conversation as resolved.
|
||
| ## Examples | ||
|
|
||
| ### Restricting high-entropy data to specific origins | ||
|
|
||
| The following policy would only allow the current origin and two other specific origins to retrieve high-entropy data. | ||
|
|
||
| ```http | ||
| Permissions-Policy: ch-ua-high-entropy-values=("self https://a.example.com" "https://b.example.com") | ||
| ``` | ||
|
|
||
| You could then embed one of the two other origins: | ||
|
|
||
| ```html | ||
| <iframe src="https://a.example.com" allow="ch-ua-high-entropy-values"></iframe> | ||
| ``` | ||
|
|
||
| ## Specifications | ||
|
|
||
| {{Specifications}} | ||
|
|
||
| ## Browser compatibility | ||
|
|
||
| {{Compat}} | ||
|
|
||
| ## See also | ||
|
|
||
| - {{HTTPHeader("Permissions-Policy")}} header | ||
| - [Permissions Policy](/en-US/docs/Web/HTTP/Guides/Permissions_Policy) | ||
| - [User-Agent Client Hints API](/en-US/docs/Web/API/User-Agent_Client_Hints_API) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I still have to create something to catch these cases as discussed in #41648 (comment). Good enough for now.