json - How to work with $http.jsonp -
i using below code json data ma getting success ,200 status , repsonse in network tab of browser (developer tools) have put break point going error , ma gettinf 404 status , undefined data can please me in this
var url = 'http://xx.xx.xx.xx:8084/api/users/current/?callback=json_callback'; $http.jsonp(url,{ withcredentials: true}) .success(function(data) { console.log(data); }) .error(function(data) { console.log(data); });
Comments
Post a Comment