samrum / vite-plugin-web-extension

A vite plugin for generating cross browser platform, ES module based web extensions.
MIT License
334 stars 32 forks source link

ManifestV3: How do I access the Youtube, Streamable, etc embeds for iframes? #138

Open animber0 opened 8 months ago

animber0 commented 8 months ago

The CSP blocks all of that (trying to access embedded video via iframe from external sites). Am I supposed to reference external scripts somehow? Seeing a lot of rejection by the CSP, but but it looks like ManifestV3 is against this sort of external loading too, is there someway I should be doing this?

Screenshot 2024-02-20 211821

animber0 commented 8 months ago

This is an issue specifically with inline players (like a custom component wrapping Player.js or an npm package affecting the same). Just use a raw iframe or video element for testing purposes, that's as far as I got.