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

Attributes removed from YouTube iFrame #2833

Open
dansisan opened this issue Dec 17, 2024 · 0 comments
Open

Attributes removed from YouTube iFrame #2833

dansisan opened this issue Dec 17, 2024 · 0 comments

Comments

@dansisan
Copy link

Many customers require a minimally permission sandbox attribute on iframe elements, including the YouTube embed iframe. When I add this attribute to the iframe, plyr overwrites the iframe without this attribute.

Expected behaviour

Any attributes on the iframe should be preserved. Alternatively maybe there could be a way to specify attributes in the constructor (I didn't see that if it exists).

Actual behaviour

The sandbox attribute was removed.

Steps to reproduce

Call the constructor on a parent div to the Youtube iframe.

Environment

  • Browser: Chrome
  • Version: 131.0.6778.140
  • Operating System: OSX
  • Version: 14.7.2

Console errors (if any)

No errors.

Link to where the bug is happening

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

No branches or pull requests

1 participant