It seems like you are facing a Cross-Origin Resource Sharing (CORS) issue. CORS is a security feature implemented by web browsers that blocks requests from one domain to another domain. In your case, the frontend deployed in Azure App Service is trying to access the backend deployed in an Azure virtual machine, which is a different domain.
To resolve this issue, you need to enable CORS in your backend. You can do this by adding the following header in your response:
Access-Control-Allow-Origin: *
This header allows requests from any domain. If you want to allow requests from a specific domain, you can replace the asterisk with the domain name.
You can also enable CORS in Azure App Service by using the Azure CLI. You can follow the steps mentioned in the tutorial "Host RESTful API with CORS" to enable CORS in Azure App Service.
Please let us know if you have further questions or concerns.