I trying to get the ajax function to request data from a url, however the scripts throws the error alert. in the console log window, it shows the following message:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://wwww.exampleDomain.com/test2.aspx. This can be fixed by moving the resource to the same domain or enabling CORS.
$(document).ready(function () {
$.support.cors = true;
$.ajax({
type: "Post",
crossDomain: true,
contentType: "application/json; charset=utf-8",
url: "http://wwww.exmapleDomain.com/test2.aspx",
data: "{}",
dataType: "json",
success: function (data) {
alert(data.toSource());
console.log(data);
var myData = JSON.parse(da ...
Go to the complete details ...