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] This document requires 'TrustedHTML' assignment. #807

Closed
2 of 3 tasks
anuoua opened this issue Nov 6, 2023 · 2 comments
Closed
2 of 3 tasks

[BUG] This document requires 'TrustedHTML' assignment. #807

anuoua opened this issue Nov 6, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@anuoua
Copy link
Contributor

anuoua commented Nov 6, 2023

What happened?

Error when use Content Script UI on google play

image

innerHTML is blocked by CSP

image

image

Version

Latest

What OS are you seeing the problem on?

MacOSX

What browsers are you seeing the problem on?

Chrome

Relevant log output

This document requires 'TrustedHTML' assignment.

------

Your site tries to use a plain string in a DOM modification where a Trusted Type is expected. Requiring Trusted Types for DOM modifications helps to prevent cross-site scripting attacks.
To solve this, provide a Trusted Type to all the DOM modifications listed below. You can convert a string into a Trusted Type by:
defining a policy and using its corresponding createHTML, createScript or createScriptURL function.
defining a policy named default which will be automatically called.

(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.
@anuoua anuoua added the bug Something isn't working label Nov 6, 2023
@anuoua
Copy link
Contributor Author

anuoua commented Nov 10, 2023

Merged!
thx

@anuoua anuoua closed this as completed Nov 10, 2023
@louisgv
Copy link
Contributor

louisgv commented Nov 10, 2023

@anuoua I'm cutting a release, will take a bit till it's live!

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

2 participants