I have an Azure function app with a custom domain from an external provider. The custom domain works fine until I enable IP restrictions. Once I do, if I hit the custom domain I get a 403 error, but if I hit the .azurewebsites.net url I get the expected response.
I think that this might be something to do with the request being routed through my DNS provider (Cloudflare) but I’m unsure how to resolve it.
2
Answers
It seems that adding cloudflare's IP ranges to the allow list solved the problem
As per Set up Azure App Service access restrictions: