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

Permission policy integration. #25

Merged
merged 2 commits into from
Dec 6, 2023
Merged

Permission policy integration. #25

merged 2 commits into from
Dec 6, 2023

Conversation

wangw-1991
Copy link
Collaborator

@wangw-1991 wangw-1991 commented Dec 5, 2023

Add permission policy integration, because this is a powerful API and should be controlled by permission policy.


Preview | Diff

@backkem backkem self-requested a review December 5, 2023 08:10
index.bs Outdated
Alternatively, the Local Peer-to-Peer API can be disabled completely by specifying the permissions policy in a HTTP response header:

<pre class="example" title="Permission Policy over HTTP" highlight='js'>
Permissions-Policy: {"local-peer-to-peer": []}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for using a JSON notation here? Maybe we should use the header syntax, e.g.:

Suggested change
Permissions-Policy: {"local-peer-to-peer": []}
Permissions-Policy: local-peer-to-peer=()

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion, I will change it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @backkem for the great work. Fix some nits, please have a look.

@backkem backkem merged commit 31cdf70 into WICG:main Dec 6, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants