#LuchoRxs-cors-issue
1 messages · Page 1 of 1 (latest)
Hey! Can you share some more details on your integration?
Are you using Checkout, or a custom flow/
Hi there, thanks for answering so fast
I'm using custom flow
This is the console error
Access to XMLHttpRequest at 'https://m.stripe.com/6' from origin 'https://m.stripe.network' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute
Also, where are you trying to send your users back to with the 'Go back' button
To the previous page, would be checkout page
Yeah, you can't return the users back to that page after a successful payment
What's the use case?
Ohh I see
I have a checkout page that our client uses to charge their clients
Is there any workaround for this? Or how should I change the flow in order to avoid this
To clarify, are you using our hosted Checkout? https://stripe.com/docs/payments/checkout
Got it. And how exactly are you redirecting users back? Can you share the code?
Hmm. Is there somewhere I can reproduce this?
To be clear this isn't really a Stripe problem I don't think
Let me share a endpoint so you can enter and reproduce the error
I recorded a loom video
Let me know if it's helpful
What's the error before you refresh the page?
Also the initial page path is /payments and then you go 'back' to /payment. Is that deliberate?