I’m running into CSP (Content Security Policy) errors in my RedwoodSDK app when handling form submissions. The error happens if I use useActionState to submit a form. I guess that the nonce is not attached to the inline scripts that this hook could create.
dependencies": {
"@redwoodjs/sdk": "0.0.60",
"react": "19.1.0",
"react-dom": "19.1.0",
}
Refused to run the JavaScript URL because it violates the following Content Security Policy directive: "script-src 'self' 'nonce-MTMyODY4NDI0OTc2MTg5MTk4MjMyMjcxMjc2NzMyODUxOTkyMzM1NA==' <URL>". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.