An Azure service that provides an event-driven serverless compute platform.
Thank you for reaching out to Microsoft Q&A.
In order to resolve this:
- Keep one allow rule for the origin
- Allow:
AzureFrontDoor.Backend(for the site, addscmonly if you truly need to reach Kudu via AFD). - Bind to your specific Front Door: add HTTP header match
x-azure-fdid = <your-Front-Door-ID>. - Remove
AzureFrontDoor.Frontendon the origin (not needed for origin access). - Deny → All at the end.
- Allow:
- Order matters
- Ensure the allow rule (with
AzureFrontDoor.Backend+x-azure-fdid) has a lower priority number (higher precedence) than any deny (i.e., it is evaluated first).
- Ensure the allow rule (with
- Confirm CORS
- In the Function App CORS settings, list your exact frontend origin(s).
- Avoid
*when credentials are involved. - After changing CORS behavior, purge Front Door cache to prevent stale headers from being served.
-
- Action: Allow
- Priority: e.g.,
200 - Type: Service Tag →
AzureFrontDoor.Backend - HTTP header:
x-azure-fdid = <your-FDID>(Front Door profile → Overview → Front Door ID) - Ensure final rule is Deny All.
- Function App → CORS: add
https://<your-frontend-domain>; save. - Front Door → Purge endpoint cache.