RC
Ram ChennaCreated on November 24, 2021
RESTFUL Web Services based on .NET Core 3.1 getting blocked Access to XMLHTTPRequest has been blocked by CORS Policy on IIS 10.0 windows server 2019
Hello Team,
We are having a REACT web application hosted on IIS 10.0 and which is calling the RESTFUL Web Services based on .NET Core 3.1.
The RESTFUL Web Services are also hosted on IIS 10.0 on IIS10.0 within Windows Server 2019.
When we reach the very first page of the REACT application it calls a RESTFUL Web Service API to Get some data from the database.
It gives us a message that
Access to XMLHTTPRequest has been blocked by CORS Policy on IIS 10.0.: No 'Access-Control-Allow-Origin header is present on the requested resource.
Adding the screenshot as well
What is it that the IIS 10.0 on Windows 2019 Server issue and why is it blocking and i am unable to complete the web service request.
Tried everything for the past 1 week and getting frustrated over this.
Any help provided would be good .
Thanks
Ram