Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 of 3 tasks
axelschapmann opened this issue Jun 10, 2024 · 2 comments
Closed
2 of 3 tasks
Labels
bug Something isn't working

Comments

@axelschapmann
Copy link

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

  • I would like to fix this BUG via a PR

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@axelschapmann axelschapmann added the bug Something isn't working label Jun 10, 2024
@OFNEILL
Copy link

OFNEILL commented Jun 10, 2024

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

@louisgv
Copy link
Contributor

louisgv commented Jun 10, 2024

This is a dups of #985 I think?

@louisgv louisgv closed this as completed Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants