I am attempting to load React Player as a dependency in the content script of a Vite web extension (see this github project). However, I keep running afoul of the CSP policies, specifically inline-src requirements.
Steps to reproduce:
- Clone this repo to get a Vite webextension template
- Add React Player as part of the default content script, with a fixed source (like an embedded Youtube video or something) with a fixed width and height (choose 800px x 800px or something)
- Configure for Manifest v3
I tried:
Using Manifest V3, I tried the suggestion here but it didn't work.
I took a look at this potentially relevant question here
There is also this thread, but it doesn't have much in way of remote scripts.
I expect:
To be able to load custom remote js apis for React Player to be able to use to play video.