-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[nextjs] Fix nonce issues #45794
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
[nextjs] Fix nonce issues #45794
Conversation
Netlify deploy previewhttps://deploy-preview-45794--material-ui.netlify.app/ Bundle size report |
Mayybe its worth a mention in the nextjs (or CSP) docs that you should be doing both things (get nonce at app root & at _document), it shouldn't be hard for people to get a sense that you should be passing the CSP nonce to the emotion cache, but it could be useful to have docs mentioning that so people are less lost when doing it |
We would accept a PR for that |
just opened #45798 for the docs |
Fixes #45774
createEmotionCache
available to users and allow passing options.This makes the pages router example work with strict CSP when making the following alterations: