Subsequent JSONP requests give status 404 despite GET status 200

后端 未结 1 405
南方客
南方客 2021-01-26 03:14

So I am able to make the first JSONP request to the yelp API work to return business data for me, but any subsequent requests I make lead to the callback for failure that logs a

1条回答
  •  渐次进展
    2021-01-26 03:39

    You should do it like this :

    $http.jsonp("api.yelp.com/v2/search?callback=JSON_CALLBACK", yourParams) 
    .success(function() {
         //success callback
    })
    .error(function(){
         //error callback
    }) ;
    

    0 讨论(0)
提交回复
热议问题