App Service Call

Thamer Doulat 1 Reputation point
2021-11-08T12:15:08.937+00:00

I'm creating a new app service to be accessed from another service, but the other side can't access it.
Although I created a service before it and it was working properly and it was created with the same settings

can anyone find the solution for this issue??

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,349 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 26,951 Reputation points Microsoft Employee
    2021-12-07T23:50:47.24+00:00

    Hi @Thamer Doulat ,

    To have your app service call another app service that's hosting your REST API, you need to add CORS functionality. You can use the Azure CLI command az webapp cors add --resource-group myResourceGroup --name <app-name> --allowed-origins 'https://<your-backend-rest-api>.azurewebsites.net' You can also have Allowed Origins set to '*' to enable any host.

    0 comments No comments