Open JingMatrix opened 1 year ago
I have a simple workaround to load eruda on pages requiring TrustedTypes.
threads.net
is an example website where Trusted Types API is used without checking policy names using CSP
.
So in the following workaround, we create a new policy eruda
to build TrustedHTML.
The above workaround is not perfect, as it didn't cover this usage of innerHTML in luna
It is better if you to change the source code, so that I don't need to change the js obfuscated codes.
Please avoid using
insertAdjacentHTML
function here: https://github.com/liriliri/licia/blob/4a8e6d412c7d0f5d696def09bf606d3d2d070197/src/%24insert.js#L68It causes your project
Eruda
unable to load on websites with Trusted Types API enabled.