-
After enabling the addon, my custom script is not loading, my script inside a component
my nuxt config script
when i view the page, the sd.js is loading however the scripts that is within onload not running I get this error
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
Hey, Check out this documentation page :) https://nuxt-security.vercel.app/documentation/advanced/strict-csp#whitelisting-external-resources |
Beta Was this translation helpful? Give feedback.
-
And maybe our CSP expert @vejja could help here :) |
Beta Was this translation helpful? Give feedback.
-
Following the error recommendation in the console will do it: Additional Notes 1- Unsafe-hashesIf you want to go one step further, you can also use the 2- CSP disabledPlease note that Strict CSP is not enabled on your site, because
In short, you are allowing unsafe inline scripts and unsafe inline event handlers, so maybe you don't need CSP at all ? |
Beta Was this translation helpful? Give feedback.
-
Note: Prismic COOP/COEP Github Issue opened at : nuxt-modules/prismic#204 |
Beta Was this translation helpful? Give feedback.
Yeb, it worked, this is my config.