#Fredkzk-error

1 messages ยท Page 1 of 1 (latest)

native wave
#

What call exactly are you making when you get that error?

tall basalt
#

I call the createAccountLink API (after calling the CreateAccount API)

native wave
#

I mean what are you calling in your browser

#

What call specifically is running in to the CORS error?

tall basalt
#

Sorry, not familiar with browser debugging. This is what I see

native wave
#

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?

tall basalt
#

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.

native wave
#

Please do, unfortunately I am not sure what may have changed

tall basalt
tall basalt
#

I know it's a long file... Any clue?

native wave
#

I'm having trouble finding where in there you are making that call and getting that error.

native wave
#

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?

deft abyss
#

Hey @tall basalt I'm stepping in here and wanted to follow up. Are you redirecting from your server?

tall basalt
#

HI Toby! ๐Ÿ™‚ Yes I am

deft abyss
#

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.

tall basalt
#

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.

deft abyss
#

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).

tall basalt
#

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

tall basalt