#Gleb-CORS
1 messages · Page 1 of 1 (latest)
Hi 👋 please bear with me a moment while I start to look into this.
Could you please confirm exactly which step of the flow is hitting the CORS error? It's when the frontend is trying to redirect? Or is it when your frontend is calling your backend?
@violet ravine backend returns 303 Redirect with the session url inside of location header. But when FE is trying to navigate into the the location, we get the CORS error.
hey there, just catching up as toby had to step away
@mint tiger what kind of request are you making to your back end? post or get?
@pulsar storm GET
Are you making an AJAX request or a simple form submit?
because you can't redirect instead a call to fetch() and it's almost always the issue
@inner wind thank you. We're using fetch(), are you saying that this is the problem?
the problem is not fetch itself, it's that you use it to retrieve values from your server, but instead of returning said values, you redirect, which can't work
Either you submit the page, so that your server can redirect, or you return the URL back as JSON and then client-side redirect