#Fredkzk-error
1 messages ยท Page 1 of 1 (latest)
I call the createAccountLink API (after calling the CreateAccount API)
I mean what are you calling in your browser
What call specifically is running in to the CORS error?
Sorry, not familiar with browser debugging. This is what I see
Thanks, I am not too familiar with CORS errors myself. Looking in to this
Do you have the client side javascript of the call you are making that sees this error?
wow sorry no sure i can answer this... it used to work! What happened??! I can share a 450-line JS of the form submit that makes the call.
Please do, unfortunately I am not sure what may have changed
Here it is:
I know it's a long file... Any clue?
I'm having trouble finding where in there you are making that call and getting that error.
Unfortunately I am still unsure what part of your code is seeing that error
Do you know which line specifically is reaching out to your server to get that redirect link?
Hey @tall basalt I'm stepping in here and wanted to follow up. Are you redirecting from your server?
HI Toby! ๐ Yes I am
Thanks, I think that is the source of the problem, and you have a couple options to try.
You could try building the redirect URL on your server, and then have the client actually execute the redirect.
It used to work before. I was doing auto redirect on the client side upon success of the createAccountLink API call. Then all of a sudden it stopped working due to CORS issue. So I just recreated the redirect on the server side this time.
I know CORS errors can be particularly annoying, but unfortunately there is usually little we can do to assist. Usually the best approaches are to handle the redirect on the client, or use an approach that expects a full redirect (like a form submit).
I have this button that's supposed to createAccount then a createAccountLink My UI/UX expects the user to be taken to his Stripe dashboard
Bravo, that actually worked! ๐ Thanks a lot