I am using content-security-policy for the react application. Where some of the libraries creates inline styles while generating charts. Also we have our own inline styles at some places which generated based on data.
Now issue is Content-Security-Policy we have unsafe-inline which allowing inline styles where we want to remove 'unsafe-inline' from 'style-src'. After removing 'style-src' application does not work properly as inline styles are blocked.
How we can remove unsafe-inline without impact on application.