material-ui
material-ui copied to clipboard
CSP issue in React Project
Hi team, We are using CRA to create new app and also using MUI in it. But if i add CSP headers in my website (index.html) file. And then checks the UI its not visible, but if i add unsafe-inline then its working properly.
I am using nginx, fastapi and react for my project.
i didnt getting any solution as after deploying the all css is getting as inline from MUI. Is there any solution to resolve this security issue?
Search keywords:
@Nik-Waghchaure Have you tried the steps from our doc about CRA and CSP? https://mui.com/material-ui/guides/content-security-policy/#create-react-app-cra
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.