After restricting vnet in App Service CORS error occured

AdamRynarzewski-4199 1 Reputation point
2022-10-27T08:26:22.943+00:00

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.
4,952 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 15,116 Reputation points Microsoft Employee
    2022-10-28T19:13:13.487+00:00

    AdamRynarzewski-4199,

    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.

    255264-image.png

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

    0 comments No comments