score:1

so the issue here is that you are missing access-control-allow-origin header in your request. you can add this line to your headers:

headers: {
          access-control-allow-origin:: "https://connect.stripe.com",
        },

or you can use https://www.npmjs.com/package/stripe at the moment. this way should be more convenient. don't forget to set redirect uri at https://dashboard.stripe.com/settings/applications.

i was struggling with stripe and found your question. i don`t think that you need my answer but maybe somebody else does.


Related Query

More Query from same tag