#fsantos

1 messages ยท Page 1 of 1 (latest)

obtuse graniteBOT
unreal pier
#

๐Ÿ‘‹ happy to help

#

depending on your infrastructure and how you configured it, the CORS can happen yes. The frontend approach is independent of the infrastructure issues. I would recommend using it, if you don't want to invest in figuring out what to do to make it work with the current server redirection approach

sage bane
#

I would like following redirect approach, if possible. Do you have any insights how to solve this ?

#

That is my flow. Frontend makes POST request to api in billing resource, and api responds with redirect. Then Frontend makes Prefligt request with sucess but when makes redirect gots CORS Error. Customer portal link works, if i open directly

unreal pier
#

what backend framework are you using?

sage bane
unreal pier
#

and for your frontend?

sage bane
#

Flutter 3.10

unreal pier
#

unfortunately I'm not familiar with either of those frameworks

#

I guess the easiest way here is to use the second approach

#

or try to figure out how to enable the cors redirect on the flutter's side

sage bane
#

Ok, thanks for help.

#

Solving this in Flutter, isn't safe. Because CORS is a Security setting and i need to disable. In My opinion the recommended way is stripe backend api that servers the Customer Session Portal sent CORS headers.

#

So i will following the second approach. Thanks ๐Ÿ™‚

unreal pier
#

happy to help

#

let me know if you need any more help