Hey there, I have a service that is written with the following method:
var GetData = function (token) {
$http.defaults.headers.common['Authorization'] = 'Bearer ' + token;
var response = $http.get(baseurl + "api/controller/search/1/xxxx");
return response;
};
When I make the same call using Postman
or fiddler
, it returns results. However, when I try from my application, I get the following error:
Failed to load resource: the server responded with a status of 405 (Method Not Allowed)
Do you see anything I might be doing wrong?