#fsantos
1 messages ยท Page 1 of 1 (latest)
๐ 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
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
what backend framework are you using?
Golang Gin: https://github.com/gin-gonic/gin
and for your frontend?
Flutter 3.10
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
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 ๐