Skip to content

fix(youtube-video-element): clipboard-write & web-share added#248

Open
jeffsawyer wants to merge 1 commit into
muxinc:mainfrom
jeffsawyer:patch-1
Open

fix(youtube-video-element): clipboard-write & web-share added#248
jeffsawyer wants to merge 1 commit into
muxinc:mainfrom
jeffsawyer:patch-1

Conversation

@jeffsawyer

@jeffsawyer jeffsawyer commented Jun 30, 2026

Copy link
Copy Markdown

Aligns the embed iframe's allow attribute with YouTube's official embed so the in-player Share / Copy-link controls can use the Clipboard and Web Share APIs.

Fixes #247

Note: might be worth making this configurable in a future update similar to other features


Note

Low Risk
Single iframe permission string change with no auth, data, or playback logic touched.

Overview
Extends the YouTube embed iframe allow list with clipboard-write and web-share so in-player Share and copy link controls can use the Clipboard and Web Share APIs, matching YouTube’s official embed behavior (fixes #247).

No other embed packages or player logic are changed in this diff.

Reviewed by Cursor Bugbot for commit 8fe3a1f. Bugbot is set up for automated code reviews on this repo. Configure here.

Aligns the embed iframe's `allow` attribute with YouTube's official embed so the in-player Share / Copy-link controls can use the Clipboard and Web Share APIs.

Fixes muxinc#247
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

@jeffsawyer is attempting to deploy a commit to the Mux Team on Vercel.

A member of the Team first needs to authorize it.

@snyk-io

snyk-io Bot commented Jun 30, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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.

youtube-video-element: iframe allow omits clipboard-write and web-share, breaking the player's Share/Copy controls

1 participant