Azure Front Door CORS : OPTIONS call failing

Rishabh Dugar 1 Reputation point Microsoft Employee
2022-05-04T10:22:07.01+00:00

HI Community,

I have a api-app service which is access restricted and enabled only from Front Door.
In my front door i have setup forwarding rule as mentioned in DOCS to enable cors but the OPTIONS call always seems to fail with 405.

Docs
https://learn.microsoft.com/en-us/azure/frontdoor/standard-premium/troubleshoot-cross-origin-resources#:~:text=CORS%20on%20Azure%20Front%20Door%20will%20work%20automatically,and%20ensuing%20requests%20will%20use%20the%20same%20header.

My Rule Set in AZ Front Door
198786-image.png

Any similar experience in the group and possible pointers please?

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
627 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rishabh Dugar 1 Reputation point Microsoft Employee
    2022-05-06T06:28:53.063+00:00

    I was finally able to resolve this by add web app's DNS/URL to api app CORS policy.
    After adding Front DOOR DNS to CORS setting of api app , error changed from 405 to 400 and later it was successful after adding webapp's dns to cors setting.

    0 comments No comments