material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

CSP issue in React Project

Open Nik-Waghchaure opened this issue 10 months ago • 1 comments

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 avatar Apr 18 '24 10:04 Nik-Waghchaure

@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

mj12albert avatar Apr 29 '24 13:04 mj12albert

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.

github-actions[bot] avatar May 07 '24 12:05 github-actions[bot]