I have a domain say "abc.com" which i have configured to the load balancer in gcp which has a backend of cloud run service wtih flutter app and I have another cloud run service which has a flutter app with some different endpoints like say "/login" which I have added to the host and paths in the load balancer configuration but Im facing issue when i hit "abc.com/login" as it doesnt really show the page that it is supposed to show. one more thing you should know is that I have added the abc.com's cloud run service as the default any unmathced hosts and /login in other paths.
The main problem arises when we have the load balancer in front the services the main domain "abc.com" is set to the abc-website cloud run service on the load balancer with the default and all unmatched hosts. So when the request "https://abc.com/login" when arrived to the specific backend it actually goes to the abc-app but it doesnt actually render the login page and it ends up showing the default abc-website's 404 error page. The root cause actually is unclear over here because there's something that is causing the request that defaults to the unmatched hosts.
The 404 error page is the custom page that has been designed in flutter which is being rendered when the static routes are not found for the abc-app and the same logic is for the abc-website, so what problem I'm facing is that whenever the request comes in at abc.com it loads correctly but when I hit abc.com/login the request goes to the correct cloud run service of abc-app which has defined the /login route but it renders the 404 page of the abc-website's cloud run service which is set to deafult all unmatched hosts in the load balancer