Closed HT808s closed 4 weeks ago
When is it planned to merge?
Please merge it since it's quite an issue while developing
Thanks for the PR! Will merge soon!
Do you know when this problem will be solved?
I still have the error on my side. Although I have update plasmo for my project with pnpm up -L plasmo
Has this been pushed to pnpm as well?
Is it fix the issue on dev runtime?
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".
@OFNEILL yes it's pushed to the registry
Is it fix the issue on dev runtime?
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".
Hmm, I think if the user has multiple CSUI, this fix will not work because it will try to inject multiple loaders simultaneously... :-?..... @HT808s
I still have the error on my side @louisgv , even with the latest version of Plasmo.
-> it occurs on LinkedIn
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.
The error occurs on the home page, but if you go to a more specific url, like "https://www.linkedin.com/blog/member". There is no more error (i don't know if it helps)
@axelschapmann correct, it working on "https://www.linkedin.com/blog/member" but home and user's profile page still throw this error
i create a hotfix for this issue on this PR #1000 you can test or use my bugfix
clone the repo
git clone git@github.com:agungjk/plasmo.git --recurse-submodules
install dependency
pnpm install
build the repo
pnpm run build:cli
go to the folder cd cli/plasmo
and link the runtime pnpm link --global
you can test it by running plasmo dev
instead of pnpm run dev
on your plasma project
Details
This PR aimes to fix the issue https://github.com/PlasmoHQ/plasmo/issues/985
Code of Conduct
Contacts
If your PR is accepted, we will award you with the
Contributor
role on Discord server.To join the server, visit: https://www.plasmo.com/s/d