Addon communication problem between frontend application and java application

Hi,

I built a java application and an angular application, and created an addon in home assistant to run these two applications. For the angular application I am using nginx, and the page loads well, where requests to fetch static files (js, css, etc.) are made from the url http://XXXX:8123/api/hassio_ingress/[Id]

When making http requests within the angular application to the java application, it does not use the same url format, that is, it does not have the “/api/hassio_ingress/[Id]” part, which does not allow me to make http requests.

I tested making requests directly to the java application, from this url (http://XXXX:8123/api/hassio_ingress/[Id]/), and it works well.

Does anyone know how the frontend application (angular app) can make requests with the same url format as it does for static files? That is, with the part “/api/hassio_ingress/[Id]>”

Thanks