anwith.ct
anwith.ct

Reputation: 663

Ajax GET request failing

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

Answers (1)

Justin Donohoo
Justin Donohoo

Reputation: 380

Are you having cross domain issues?

Upvotes: 1

Related Questions