After restricting vnet in App Service CORS error occured

AdamRynarzewski 6 Reputation points

After restricting our App Service to only be accessible by VNET/SUBNET the CORS error occured.
CORS is defined in App Service and without restriction it works fine. But after defining a restriction it looks like this setting stop working.
Any ideas?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,392 questions
{count} vote

1 answer

Sort by: Most helpful
  1. ajkuma 24,811 Reputation points Microsoft Employee


    How are you trying to access the App Service? Over private endpoint
    What is the client making the call to App Service? Another App Service?
    Is your WebApp on Windows or Linux plan?

    --You may leverage App Service diagnostics from Azure Portal> Navigate to your App Service app in the Azure Portal. (screenshot below)

    -- In the left navigation, click on Diagnose and solve problems and search for “VNET”

    --Use Regional VNet integration and VNET integration detector to fix any VNet integration issues.
    and also leverage " Network troubleshooter"

    See this doc: Troubleshoot virtual network integration with Azure App Service, to isolate the issue.


    Kindly let us know how it goes, we will be more than happy to assist you further.