Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Refused to load the script 'https://netlify-cdp-loader.netlify.app/netlify.js' (CSP) for deploy previews #244

Closed
Rllyyy opened this issue Mar 15, 2023 · 0 comments · Fixed by #246
Assignees
Labels
bug Something isn't working

Comments

@Rllyyy
Copy link
Owner

Rllyyy commented Mar 15, 2023

Refused to load the script 'https://netlify-cdp-loader.netlify.app/netlify.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Fix

<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' https://netlify-cdp-loader.netlify.app; style-src 'self' 'unsafe-inline'; base-uri 'self'; img-src 'self' https://* http://*;" />
@Rllyyy Rllyyy added the bug Something isn't working label Mar 15, 2023
@Rllyyy Rllyyy self-assigned this Mar 15, 2023
Rllyyy added a commit that referenced this issue Mar 17, 2023
@Rllyyy Rllyyy linked a pull request Mar 17, 2023 that will close this issue
@Rllyyy Rllyyy closed this as completed Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant