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

Content Security Policy error #42

Open
brittpoplin opened this issue Oct 31, 2022 · 1 comment
Open

Content Security Policy error #42

brittpoplin opened this issue Oct 31, 2022 · 1 comment

Comments

@brittpoplin
Copy link

I manage an app created using Angular.

  • Angular 12.2.3
  • agular-fusioncharts 4.0.0
  • fusioncharts 3.19.0

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
Copy link

This is exactly what I'm seeing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants