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

Make parse compatible with CSP #87

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Make parse compatible with CSP #87

wants to merge 2 commits into from

Conversation

vrana
Copy link

@vrana vrana commented Oct 14, 2021

Using parseRows with CSP enabled is quite cumbersome. I don't see a reason why this shouldn't just work (even though a little slower).

@koto
Copy link

koto commented Mar 2, 2022

Is there any reason not to merge it? This allows d3 to work on applications that use CSP without unsafe-eval, which seems quite beneficial. The less-performant branch is only taken if the new Function has failed due to CSP.

Copy link
Contributor

@curran curran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to make sure the new code is covered by tests.

src/dsv.js Outdated Show resolved Hide resolved
@vrana
Copy link
Author

vrana commented Mar 14, 2022

I've added a test and fixed the formatting.

@curran
Copy link
Contributor

curran commented Nov 5, 2022

Just curious, how much slower is this?

@zzacharo
Copy link

Hey, any update on this? It would be really helpful for us as it would allow us to apply proper CSP while still using this library.

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

Successfully merging this pull request may close these issues.

4 participants