Skip to content
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 issue in React Project #41952

Closed
Nik-Waghchaure opened this issue Apr 18, 2024 · 2 comments
Closed

CSP issue in React Project #41952

Nik-Waghchaure opened this issue Apr 18, 2024 · 2 comments
Assignees
Labels
package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information support: question Community support but can be turned into an improvement

Comments

@Nik-Waghchaure
Copy link

Nik-Waghchaure commented Apr 18, 2024

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:

@github-actions github-actions bot added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Apr 18, 2024
@zannager zannager added support: question Community support but can be turned into an improvement package: material-ui Specific to @mui/material labels Apr 18, 2024
@mj12albert
Copy link
Member

@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 mj12albert added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Apr 29, 2024
Copy link

github-actions bot commented May 7, 2024

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 github-actions bot closed this as completed May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

4 participants