Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Vite Manifest V3 Webextension running into CSP inline-src issue

$
0
0

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:

  1. Clone this repo to get a Vite webextension template
  2. 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)
  3. 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.


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>