-
Notifications
You must be signed in to change notification settings - Fork 382
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
React18 Suspense violate CSP script-src #173
Comments
This is the problem: remix-run/remix#5156 I'm going to see if I can help the Remix team get this prioritized. |
There's a PR open for fixing this (remix-run/remix#6389), until that's merged I'm adding a patch-package to the template so people can start doing this today. |
I have applied for the patch. But I got this error and the whole page cannot load normally. Uncaught ReferenceError: nonce is not defined Where should I put the nonce in? |
I use React18 Suspense for my application. When I refreshed the whole page I got an error message below.
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'strict-dynamic' 'self' 'nonce-3d8ea51c7c94e7d047c71b5f52a6be5d'". Either the 'unsafe-inline' keyword, a hash ('sha256-t+32sreM3IZd/ngtsiPnbI+mF2Uv+Bcnx/8eVsE5w7s='), or a nonce ('nonce-...') is required to enable inline execution.
The text was updated successfully, but these errors were encountered: