When deploying my application in a production environment, I encounter an issue with the URL addresses. The web address is , while the API address is . However, when making a request to the API through Angular, the URLs get concatenated into . This issue does not occur in the local environment. How can I prevent this concatenation and ensure that only the API address is used?
https://i.sstatic.net/9Hz65.jpg The service login:
https://i.sstatic.net/VXm62.jpg
The section highlighted in yellow represents the API address, while the preceding part denotes the web address.