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
Rijwan AnsariPosted May 21, 2021, 4:25 PM
Mark TaborPosted May 20, 2021, 1:51 PM
$(document).ready(function () {
$("#tblStudents").DataTable({
"ajax": {
"url": "http://localhost/EvaluationSystem/Students/GetList",
"type": "POST",
"processing": true,
"serverSide": true,
"datetype": "json"
},
Mark TaborPosted May 20, 2021, 1:37 PM
Pranam BhatPosted May 20, 2021, 11:04 AM
Arnab MukherjeePosted May 20, 2021, 10:46 AM
Sachin SinghPosted May 20, 2021, 9:26 AM
Salman BegPosted May 20, 2021, 9:07 AM