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

Improve CSP compliance for gfx and charting #314

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

msssk
Copy link
Contributor

@msssk msssk commented Jan 3, 2020

Fixes #312

Remove usage of new Function()

This PR addresses the most common CSP issues with the charting code (and its gfx dependencies).

The Chart widget, when used with a declarative data provider, makes more extensive use of eval and dojox/functional.lambda and remains unaddressed in this PR. Using this widget this way is cumbersome and not recommended, and hopefully not being done in the wild.

Remove usage of new Function()
@dylans dylans merged commit 5491eff into dojo:master Feb 12, 2020
dylans pushed a commit that referenced this pull request Feb 12, 2020
Remove usage of new Function()
(cherry picked from commit 5491eff)
dylans pushed a commit that referenced this pull request Feb 12, 2020
Remove usage of new Function()
(cherry picked from commit 5491eff)
dylans pushed a commit that referenced this pull request Feb 12, 2020
Remove usage of new Function()
(cherry picked from commit 5491eff)
dylans pushed a commit that referenced this pull request Feb 12, 2020
Remove usage of new Function()
(cherry picked from commit 5491eff)
dylans pushed a commit that referenced this pull request Feb 12, 2020
Remove usage of new Function()
(cherry picked from commit 5491eff)
dylans pushed a commit that referenced this pull request Feb 12, 2020
Remove usage of new Function()
(cherry picked from commit 5491eff)
@dylans
Copy link
Member

dylans commented Feb 12, 2020

Closed via 5491eff.

Backported as:

@msssk msssk deleted the 312-charting-csp branch June 9, 2020 00:00
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

Successfully merging this pull request may close these issues.

lang/functional/lambda.js Content Security Policy Violation (unsafe-eval)
2 participants