0

Scenario

I have been trying to use Firebase CDN for my Chrome Extension. When I try to do that, I get an error stating that the CSP is not allowing inline Javascript to execute.

Error

The CSP has blocked inline Javascript, stating that XSS is possible. While I don't want that to happen, I do want to implement Firebase.

Work done so far

First, I tried creating a nonce with a meta tag. That didn't work. Then I tried exporting it to another file, but it tells me script-src blocked the Javascript.

So, what I'm I supposed to do?
Jandroid
  • 111
  • 1
  • 11

1 Answers1

1

MV3 doesn't support remote hosted code anymore so everything should be bind inside extension package. Please let me know any questions after reading this. https://gist.github.com/cheadrian/8424217dda5a28724f290eef7fb4e059

Top
  • 95
  • 4