Reputation: 663
I have an ajax request as follows:
permissionRequestModel.showApprovers = function () {
$.ajax({
url: "http://ec6484646848compute-1.amazonaws.com/api/Request/permission?appid=1&opertype=requestor,
type: "GET",
contentType: "application/json",
dataType: "json",
error: function(){
alert("failed");
},
success: function (data) {
alert("Success");
}
});
};
which is failing, but the requested URL is returning the JSON response in the Rest Client on chrome properly. What am I doing wrong here?
Upvotes: 0
Views: 116