AZ-204 Quiz

App Service

Question:

As an Azure Cloud Engineer, you received a complaint from a client who is running tests on your web application from http://localhost:5000. They reported an error stating: Access to XMLHttpRequest at 'http://myWebApp.azurewebsites.net' from origin 'http://localhost:5000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Fix that!

The web application resides in a resource group named myResourceGroup.

# Code here


Report a problem
Exam revision: April 11, 2025