Mark Tabor

Mark Tabor

  • 569
  • 1.9k
  • 431.2k

Block by CORS POLICY

May 20 2021 9:01 AM
Hi i have .net mvc application I deploy it on iss when i run it from iis it works fine but when I access the application from other machines using IP i got below error message in console 
 
Access to XMLHttpRequest at 'http://localhost/EvaluationSystem/Students/GetList' from origin 'http://58.65.169.181' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
 
basically i am calling my method in razor view with http://localhost/EvaluationSystem/Student/GETLIST 

Answers (7)