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 of your site blocks the use of 'eval' in JavaScript` #209

Closed
weihao opened this issue Jul 2, 2021 · 2 comments
Closed

Comments

@weihao
Copy link

weihao commented Jul 2, 2021

Error Log:

The Content Security Policy (CSP) prevents the evaluation of arbitrary strings as JavaScript to make it more difficult for an attacker to inject unathorized code on your site.
To solve this issue, avoid using eval(), new Function(), setTimeout([string], ...) and setInterval([string], ...) for evaluating strings.

Source:
https://github.com/vue-stripe/vue-stripe-checkout-nuxt-demo

Reproduce:
https://vue-stripe-checkout-nuxt-demo.web.app/

@jofftiquez
Copy link
Member

Hello, this may not be relevant to vue-stripe itself as the error/warning is in the demo code. Will close this for now. Thanks.

@pankgeorg

This comment was marked as outdated.

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

3 participants