I have a problem when on my preview build.
It doesn’t load the Js and shows a blank page.
After adding this header on netlify.toml, it still got an error.
But on the production, it doesn’t have any issue.
I’ve already tried a lot of configs like default-src, but still not working.
Here is the preview build:
Here is the production:
Here is the netlify.toml:
[[headers]] for = "/*" [headers.values] Content-Security-Policy = "script-src 'self' 'unsafe-inline' *.netlify.app *.netlify.com;"