#Merino

1 messages · Page 1 of 1 (latest)

dusk roseBOT
static mauve
#

Hi! How can we help?

inland talon
#

Hey TS how are you?

#

So, I've been using the checkout object for a while now, my I didn't had any DNS turned on until now

#

Now that I do have one, the redirect do the checkout link is being blocked by cors

#

I wanted to know if it's ok to use a no-cors policy at this redirect

static mauve
#

What's the actual error you're getting?

inland talon
#

Access to fetch at 'https://checkout.stripe.com/c/pay/cs_test_a1nOM5lCah2n8aq1VA69kR2bUcBQtgA4o3SQ4kl0d8DeKKJLafjKiK57N2#fidkdWxOYHwnPyd1blpxYHZxWjA0SWFMcXFHakx8TmwxZmlNUDExUHNnTDxNNXYxYkpjSXVccXRBZHY2aGhVa3Q1Q2RGRm9gfGJPQE9pRm9SdFN1NUQzZEF9M0hJPXBWaTFmYTVJNTFIM0xHNTVEa2xtXXZjNScpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl' (redirected from 'http://signup.airpoon.com/checkout') from origin 'http://signup.airpoon.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

static mauve
#

Ahhh, okay. It sounds like you're trying to use fetch() to perform a redirect. What you need to do instead is return the Checkout Session's URL to the client and perform a regular redirect there (outside of the fetch() function)

inland talon
#

Oh I see

#

I tried to redirect from the back-end

#

But the fetch still need it's answer

#

Riight, thanks mate! Have a good one