#louis-tam_api

1 messages · Page 1 of 1 (latest)

tame dustBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1235277079654830130

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

trail vault
#

Hello! What is the CORS error you're seeing?

tame dustBOT
molten fractal
#

Are you using the fetch() method to redirect to Checkout?

#

It sounds like you probably are

gleaming edge
#

yes const response = await fetch(/api/stripe/create-checkout-session, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(body),
});

molten fractal
gleaming edge
#

Are there alternative ways to do this without reconfiguring everything as another form? I've got all my body data packaged and ready to go on a confirmation screen, which is where the create checkoutsession is