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 inline-style #653

Open
fabienbranchel opened this issue Jan 30, 2020 · 0 comments · Fixed by nosferatu500/react-sortable-tree#1 · May be fixed by #826
Open

CSP issue inline-style #653

fabienbranchel opened this issue Jan 30, 2020 · 0 comments · Fixed by nosferatu500/react-sortable-tree#1 · May be fixed by #826

Comments

@fabienbranchel
Copy link

Hello !

I use your great component in my app and have some CSP issues since I can't use inline-style. Is there anyway to handle this, in the defaut theme and featured themes ?

The error in console :
Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'

rjoonas pushed a commit to rjoonas/react-sortable-tree that referenced this issue Nov 3, 2020
When using a Content-Security-Policy with a style-src rule that does
not include 'unsafe-inline', a nonce prop needs to be used with
react-virtualized as it appends inline <style> tags to the DOM.

Resolves frontend-collective#653
@rjoonas rjoonas linked a pull request Nov 3, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant