Skip to content

Fix broken YouTube embedded player caused by recent embed restrictions#10

Open
fanchenkong1 wants to merge 1 commit intoumeshSinghVerma:masterfrom
fanchenkong1:fix-embedded-youtube-upstream
Open

Fix broken YouTube embedded player caused by recent embed restrictions#10
fanchenkong1 wants to merge 1 commit intoumeshSinghVerma:masterfrom
fanchenkong1:fix-embedded-youtube-upstream

Conversation

@fanchenkong1
Copy link
Contributor

Recent changes to YouTube’s embed requirements caused the embedded player
to break when loaded directly from chrome-extension:// pages (Error 153:
missing embedder identity / referrer).

This PR fixes the issue by routing video playback through an HTTPS-hosted
player page (player.html), which restores a valid embed context.

Key changes:

  • Replace YouTube iframe embed with a hosted player iframe
  • Add frame-src allowance in MV3 CSP
  • Introduce a configurable placeholder (PLAYER_HOST_URL) for the player host

Note:
PLAYER_HOST_URL must be replaced with an HTTPS origin that serves
player.html (e.g. https://player.example.com). This is intentionally left
as a placeholder for downstream configuration.

Reference: https://groups.google.com/a/chromium.org/g/chromium-extensions/c/OUJad0q-d_g/m/rH7NpiqrAgAJ

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.

1 participant