Skip to content

"This document requires 'TrustedHTML' assignment" error on Chromium browsers #104

@Sv443

Description

@Sv443

I guess Chromium is just more strict when it comes to the CSP and assigning stuff to the innerHTML property?

https://greasyfork.org/en/discussions/development/220765-this-document-requires-trustedhtml-assignment
https://developer.mozilla.org/en-US/docs/Web/API/TrustedHTML

The library DOMPurify could be used to fix this without having to manually implement the TrustedHTML API which isn't supported in Firefox and Safari yet.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions