Microsoft
AZ-204 · Question #128
You develop and deploy a Java RESTful API to Azure App Service. You open a browser and navigate to the URL for the API. You receive the following error message: You need to resolve the error. What…
The correct answer is C. Enable CORS. We need to enable Cross-Origin Resource Sharing (CORS). https://medium.com/@xinganwang/a-practical-guide-to-cors-51e8fd329a1f
Submitted by takeshi77· Mar 30, 2026Develop Azure compute solutions
Question
You develop and deploy a Java RESTful API to Azure App Service. You open a browser and navigate to the URL for the API. You receive the following error message: You need to resolve the error. What should you do?
Options
- ABind an SSL certificate
- BEnable authentication
- CEnable CORS
- DMap a custom domain
- EAdd a CDN
How the community answered
(56 responses)- A11% (6)
- B2% (1)
- C79% (44)
- D4% (2)
- E5% (3)
Explanation
We need to enable Cross-Origin Resource Sharing (CORS). https://medium.com/@xinganwang/a-practical-guide-to-cors-51e8fd329a1f
Topics
#CORS#App Service#REST API#cross-origin resource sharing
Community Discussion
No community discussion yet for this question.