PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.31k stars 358 forks source link

[BUG] CSP Restriction for TrustedTypePolicy Creation in Loading Indicator #995

Closed axelschapmann closed 3 months ago

axelschapmann commented 3 months ago

What happened?

A bug happened in plasmo dev mode!

What is strange is that it doesn't happen within prod mode.

But it is really annoying, because i am anable to use the dev mode

Version

Latest

What OS are you seeing the problem on?

MacOSX

What browsers are you seeing the problem on?

Chrome

Relevant log output

Refused to create a TrustedTypePolicy named 'trusted-html-__plasmo-loading__' because it violates the following Content Security Policy directive: "trusted-types 'allow-duplicates' default jSecure highcharts dompurify".
Uncaught TypeError: Failed to execute 'createPolicy' on 'TrustedTypePolicyFactory': Policy "trusted-html-__plasmo-loading__" disallowed.

(OPTIONAL) Contribution

Code of Conduct

OFNEILL commented 3 months ago

So it seems that the previous PR did add the trusted types, but for whatever reason it didn't work image

louisgv commented 3 months ago

This is a dups of #985 I think?