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

R

Ram Chenna

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 wellWhile the same code base and the web app

Continue reading...
 
Back
Top Bottom