I am trying to upload images using file-uploader jquery plugin. But i am getting "Cross-Origin Request Blocked" and not getting any response. Here is one thing my file is place on another server and my ajax url is different
Please check below my code:-
var url = 'mysite/upload.php';
$('#fileupload').fileupload({
url: url,
dataType: 'json',
done: function (e, data) {
alert(data)
}
});
Please update me how this will fix.