Azure App Service CORS 403 Error , Request Method Options

Pallab Chakraborty 401 Reputation points
2022-04-13T18:41:45.017+00:00

I have configured App Gateway and the backend of my App Gateway has two apps, one Front End Web App and another Function App.
The function app is talking to a Databricks instance from another tenant and getting data.
I have an API app that is sitting between my Front End and Function App.

After doing custom domain name binding for both my FE and Function App and making the custom domain name same as the App GW Https listeners, i get rerouted to the Front End web app when i try to browse to the Front End App via App Gateway.

But i get to see this error in the browser after i hit F12.
In the API web app i have CORS enabled and the URL mentioned is that of the custom domain of the FE web app.
Any idea why this error is coming still
Request URL: https://contoso-qa-8234.azurewebsites.net/datahub/negotiate
Request Method: OPTIONS
Status Code: 403
Remote Address: 20.X.X.X:443
Referrer Policy: strict-origin-when-cross-origin

The remote address IP is that of the IP that i see for the Front End Web App when i go to Custom Domain in App Services192775-cors-error.jpg

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,080 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,905 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pallab Chakraborty 401 Reputation points
    2022-10-27T18:38:18.117+00:00

    Hello Ajkuma, the issue is resolved and things are ok now. Thanks for checking back


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.