Trusted Types
See original GitHub issue- Check if updating to the latest Preact version resolves the issue
Describe the bug Not sure if you have support for CSP:s trusted types, but I get an error when I try to add trusted types. And there seems to be no docs on trusted types.
Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment.
To Reproduce
Steps to reproduce the behavior:
Expected behavior What should have happened when following the steps above?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
CSP: trusted-types - HTTP - MDN Web Docs
The HTTP Content-Security-Policy (CSP) trusted-types Experimental directive instructs user agents to restrict the creation of Trusted Types policies ...
Read more >Prevent DOM-based cross-site scripting vulnerabilities with ...
Trusted Types give you the tools to write, security review, and maintain applications free of DOM XSS vulnerabilities by making the dangerous ...
Read more >Trusted Types - W3C on GitHub
Trusted Types can only be created via user-defined and immutable policies that define rules for converting a string into a given Trusted Type...
Read more >Trusted Types - W3C
Trusted Types can only be created via user-defined and immutable policies that define rules for converting a string into a given Trusted Type...
Read more >w3c/trusted-types: A browser API to prevent DOM ... - GitHub
Trusted Types. First time here? This is a repository hosting the Trusted Types specification draft and the polyfill code. You might want to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Nevermind, I missed to pass the correct trust policy in dangerousleSetInnerHtml. It’s working as expected now.
Yes, I can try to create a reproducible.