-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[CSP] createCache nonce-value added to Cache not applied to inline-styles #38965
Comments
Hello @mnajdova 🤠 |
It's hard to know what may be miss-configured without a repo example to look into. Can you create a simpler reproduction and share link to the repository? Thanks! |
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information. |
hi @mnajdova my thought is that the inconsistency is on the createEmotionCache function. |
I have the same problem when applying nonce's described in the doc, but on a NextJS project. #40435 |
Steps to reproduce 🕹
we are using remixjs+MUI and want to add CSP-Headers following these guides:
CSP-guide
remix-Styling
we added the nonce-value to the cache on
CreateEmotionCache.tsx
:CreateEmotionCache.tsx
here is how we have
entry.server.tsx
:entry.server.tsx
Current behavior 😯
we added
nonce-value
to the<style/>
tag in theentry.server.tsx
but we are facing the errors:Expected behavior 🤔
nonce-value assigned to Cache added to
<Style/>
tags so that they are identified and nonce-values matchContext 🔦
we want to add CSP headers to harden security to our Remixjs app.
Your environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: