You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Ririio ran into an issue today with bits of Chakra-UI refusing to work due to the requirement for unsafe-inline CSP. I thought we only needed this in development, but it looks like we're going to need a solution for production, too.
@Ririio ran into an issue today with bits of Chakra-UI refusing to work due to the requirement for
unsafe-inline
CSP. I thought we only needed this in development, but it looks like we're going to need a solution for production, too.I added code to deal with this in dev, but production is going to break too, see https:/Seneca-CDOT/starchart/blob/main/server.ts#L14-L28
It looks like Emotion supports passing a
nonce
prop in the cache, see https://emotion.sh/docs/@emotion/cache#nonce and chakra-ui/chakra-ui#3294 (comment).See also some other issues/PRs related to similar CSP issues in Chakra-UI.
We're going to need a solution before we can runt his in production.
The text was updated successfully, but these errors were encountered: