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

Add "allow" attribute (feature-policy) #18

Open
MaiklT opened this issue Jun 3, 2019 · 3 comments
Open

Add "allow" attribute (feature-policy) #18

MaiklT opened this issue Jun 3, 2019 · 3 comments

Comments

@MaiklT
Copy link
Collaborator

MaiklT commented Jun 3, 2019

Description

A feature policy enables and disables certain web platform features on the web site and those that are embedded. The attribute "allow" in the iframe tag may override this policy.

Example:

feature-policy: vibrate 'self';
...
<iframe src="https://somewhere.else" allow="vibrate">

Solution

A module setting to define the "allow" value.

@MaiklT
Copy link
Collaborator Author

MaiklT commented Oct 14, 2019

There are more possible attributes, e.g. "sandbox". Maybe it is better to create a possibility to add attributes that works in the same way as the "Parameters" tab.

@noahbast
Copy link

We need this feature as well:
https://dev.chromium.org/Home/chromium-security/deprecating-permissions-in-cross-origin-iframes

For now, I'm going to have to put the iframe in an HTML module.

@MaiklT
Copy link
Collaborator Author

MaiklT commented Aug 19, 2020

@noahbast Thanks for your inquirement. I have nearly forgotten this issue... ;-)

I will soon start working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants