I have a spring boot based REST API deployed on a private Port 7070(embedded tomcat) which is not accessible via internet. Also, I have made a angular app which is deployed on public port 9070 which is accessible via internet.
When i am trying to login into my angular app and calling 7070 it is giving timeout error because it is private port and can't be accessed via public internet.
Is there a way to call my rest API from my angular app or i have to expose rest API on some public port (9070 is this case)?