Hi there!

We have created a managed application on Azure to integrate Microsoft Teams with our plattform.

We have made an integration with PHP, and everything works fine when I make the request to authorize from the backend.

When we tried to implement the URL of the backend to our frontend(React Project), it started throwing a CORS Error

Next step, I started to looking for information on the documentation of Azure, not no result was found. I added the referer route to the Redirect URIs of the application, as well as the backend authorization one.

I tried to move both URLs from Web application to SPAs, but no result was found.

Backend url: [http://localhost:9080/api/createMeetingTest]

One more thing, I have disabled the CORS from my browser. It didn't solved my issue.

I would really appreciate your help

Hi @Fernando Sanchez

If I understand correctly, you have a managed application you retrieved from the Azure Store that is based in PHP. You're currently using this managed application as a backend and it can successfully call your custom-built frontend. I could be wrong, but your PHP managed application should be based on app services. Under that assumption, you can follow Tutorial: Host a RESTful API with CORS in Azure App Service on how to add CORS to the app service. You can either use the portal or use az webapp cors add --resource-group myResourceGroup --name <app-name> --allowed-origins 'http://localhost:9080/api/createMeetingTest' CLI command.