skip to Main Content

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


  1. Chosen as BEST ANSWER

    It seems that adding cloudflare's IP ranges to the allow list solved the problem


  2. As per Set up Azure App Service access restrictions:

    When a request is made to your app, the FROM address is evaluated against the rules in your access restriction list. If the FROM address is in a subnet configured with service endpoints to Microsoft.Web, the source subnet is compared against the virtual network rules in your access restriction list.

    If the address isn’t allowed access based on the rules in the list, the service replies with an HTTP 403 status code.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search