fusioncharts / fusioncharts-dist

FusionCharts JavaScript Charting library. Over 95+ charts and 1,400+ maps to choose from, with integrations available for all popular JavaScript frameworks & back-end programming languages.
https://www.fusioncharts.com
Other
84 stars 46 forks source link

Content Security Policy error #42

Open brittpoplin opened 1 year ago

brittpoplin commented 1 year ago

I manage an app created using Angular.

When fusioncharts is added to the app as a dependency, we see the error in Google Chrome issues tab:

Content Security Policy of your site blocks the use of 'eval' in JavaScript`. To solve this issue, avoid using eval(), new Function(), setTimeout([string], ...) and setInterval([string], ...) for evaluating strings.

We believe this error is caused by the following code that appears in some fusioncharts javascript files: new Function("return this")

Please update fusioncharts to be able to comply with CSP.

openbrian commented 7 months ago

This is exactly what I'm seeing.