CORS issue with Stripe #3031
Unanswered
NetOpWibby
asked this question in
Q&A
Replies: 4 comments 5 replies
|
This isn't a SvelteKit issue per-se, it's a cross-origin issue. There's plenty on stack overflow about it, and you can read more here https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS |
3 replies
|
Have you seen this repo: https://github.com/srmullen/sveltekit-stripe? I tried it out myself and it worked pretty well |
1 reply
|
Normally you just include a normal script tag in the HTML page, e.g. If you are trying to load it via fetch or import it from your own script, that isn't going to work. They do also provide a separate module if you want to incorporate it into your own app script instead of loading it separately. |
1 reply
|
I will look at that project when I get a minute and see if I get the issue.
I load stripe in this way for Beyonk and it works without issue.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Does anyone have advice on how to best integrate Stripe with SvelteKit? I'm getting CORS issues.
(Also get this message with
https://m.stripe.network)All reactions