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

Browser (Chrome) Extensions Support #315

Open
mubaidr opened this issue Apr 5, 2023 · 0 comments
Open

Browser (Chrome) Extensions Support #315

mubaidr opened this issue Apr 5, 2023 · 0 comments

Comments

@mubaidr
Copy link

mubaidr commented Apr 5, 2023

Is your feature request related to a problem? Please describe.
Support running this library in Chrome extensions (manifest v3)

Describe the solution you'd like
vue-stripe should be useable in chrome extensions to allow payment integration using Stripe

Describe alternatives you've considered
Actually, I could not find anything to avoid this issue.

Additional context
Currently following error occurs, when trying to integrate

console:

Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules' http://localhost:* http://127.0.0.1:*".

    at Function (<anonymous>)
    at @vue-stripe_vue-stripe.js?v=229d83b0:366:9
    at createCommonjsModule (@vue-stripe_vue-stripe.js?v=229d83b0:105:14)
    at node_modules/.pnpm/@vue-stripe+vue-stripe@4.5.0/node_modules/@vue-stripe/vue-stripe/dist/index.js (@vue-stripe_vue-stripe.js?v=229d83b0:107:21)
    at __require (chunk-4EOJPDL2.js?v=229d83b0:8:50)
    at @vue-stripe_vue-stripe.js?v=229d83b0:1336:16

Capture

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

1 participant