I'm getting the error
“No 'Access-Control-Allow-Origin' header is present on the requested resource”
When I try to do this in jQuery
$.ajax({
method: "GET",
url: "http://localhost:52930/api/person"
})
.done(function( msg ) {
alert( msg );
});
To a ASP script that is running on port 52930
. The url returns a JSON array. Why does it give this error and how do I solve it?