gatsby-plugin-csp in combination with material ui 5 #33809
Unanswered
ginokok1996
asked this question in
Help
Replies: 1 comment
-
A little more context, Downgraded to gatsby 3, Now im able to use the material ui gatsby plugin. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to create an gatsby app that uses material ui 5.
Because of the client requirements i need to set up CSP without the unsafe inline value.
After adding the gatsby-plugin-csp my material ui is being blocked and i'm unable to find a fix for this so far.
I figure out i need to create an emotion cache and add a nonce.
https://mui.com/guides/content-security-policy/#main-content
But the plugin seems to work with hashes and i dont think there is a way to retrieve this hash?
Any help would be really appreciated.
Beta Was this translation helpful? Give feedback.
All reactions