Next.js Discord

Discord Forum

Issue with nonces & Content Security Policy -Warning: Prop `nonce` did not match. Server: "" Client:

Unanswered
Tennessee Warbler posted this in #help-forum
Open in Discord
Tennessee WarblerOP
Has anyone figured out how to naviagate nonces with Content Security policies?

I have an error where the nonce is generated in middleware.tsx for a next.js 14 app router app, and the nonces to the subcomponents are the same, but I can't seem to figure out how to fix this error where it's saying the nonce didn't match between server and client.

Any ideas/help would be greatly appreciated!

0 Replies