1 Answer
- Newest
- Most votes
- Most comments
0
Hello.
Since the front-end app runs on the browser, I think access to the back-end will be through the client's public IP address.
https://medium.com/@pabloregen/about-frontend-and-backend-and-where-my-javascript-runs-60e321d07790
Relevant content
- asked 3 months ago
- asked 2 years ago
- asked 3 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
Thanks for your answer. But that IP changed everytime I stop and start the instance again. If that is my PC public IP, I think it was stable.
Is it possible that the IP address of your ISP has changed?
If you configure the web server to use a proxy when accessing the API endpoint, the backend access will be localhost. For example, when I had an API like "/api/test", I think that if I set a proxy when accessing this URL, it would be accessed using localhost or a private IP of EC2.