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

Bundle contains calls to Function() which are "unsafe-eval" (CSP) #347

Open
drzraf opened this issue Aug 9, 2021 · 2 comments
Open

Bundle contains calls to Function() which are "unsafe-eval" (CSP) #347

drzraf opened this issue Aug 9, 2021 · 2 comments
Labels

Comments

@drzraf
Copy link
Collaborator

drzraf commented Aug 9, 2021

Content Security Policy (CSP) might block 'unsafe-eval' which includes eval(), Function(), setTimeout() and setInterval()

One such occurrence comes from regenerator-runtime provided by Babel.
This was somehow fixed by facebook/regenerator#346 and subsequently but Babel:

@drzraf drzraf changed the title v3 bundle contains calls to Function which are "unsafe-eval" (CSP) Bundle contains calls to Function which are "unsafe-eval" (CSP) Aug 9, 2021
@drzraf drzraf added the v3 label Aug 9, 2021
@drzraf drzraf changed the title Bundle contains calls to Function which are "unsafe-eval" (CSP) Bundle contains calls to Function() which are "unsafe-eval" (CSP) Aug 9, 2021
@drzraf
Copy link
Collaborator Author

drzraf commented Aug 9, 2021

/edit I intended to post below #346

@AidasK
Copy link
Member

AidasK commented Aug 9, 2021

Sure, you can refactor it differently, sounds good

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

No branches or pull requests

2 participants