react-draggable
react-draggable copied to clipboard
Issue loading inline style because of CSP policy
trafficstars
The react-draggable library adds a
We get a CSP error saying that the browser refuses to apply an inline style because it violates the CSP policy.
Reference - https://content-security-policy.com/
React-draggable version 3.1.1
Tried upgrading to latest version of both React-Draggable and react-grid-layout but there is no support for strict CSP.
Fix can be by providing nonce variable support like many other libraries. Or not use inline style.
This is an issue for Grafana users who want to prevent inline styles as part of their CSP.
Perhaps adding a nonce prop to ReactGridLayout, Draggable, and Resizable would be enough?