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

Remove unsafe inline styles #10370

Closed
stbenz88 opened this issue Feb 20, 2018 · 2 comments
Closed

Remove unsafe inline styles #10370

stbenz88 opened this issue Feb 20, 2018 · 2 comments
Labels
external dependency Blocked by external dependency, we can’t do anything about it support: question Community support but can be turned into an improvement v1.x

Comments

@stbenz88
Copy link
Contributor

Create-React-App combined with Material-UI components create inline style tags that are attached into the head element in the DOM. This behaviour makes it difficult to set a safe Content Security Policy, i.e. without an 'unsafe-inline'. Is there a possibility or a config with which these behaviour can be changed?

Tech Version
Material-UI v1.0.0-beta.34
React 16.2
@oliviertassinari oliviertassinari added external dependency Blocked by external dependency, we can’t do anything about it support: question Community support but can be turned into an improvement labels Feb 20, 2018
@oliviertassinari
Copy link
Member

oliviertassinari commented Feb 20, 2018

Duplicate of #4647

It's documented in: https://v1.mui.com/guides/csp/.

@ComradeLV

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external dependency Blocked by external dependency, we can’t do anything about it support: question Community support but can be turned into an improvement v1.x
Projects
None yet
Development

No branches or pull requests

3 participants