I’m writing an app using the Ionic framework and I’m getting the same problem.
I’ve got the angular.js call:
$http.jsonp("https://localhost/matImms/wp-json/posts?callback=JSON_CALLBACK").success(function (posts) {
this.postsData = posts;
})
The problem seems to be _jsonp is not being set at all – so the fix doesn’t work. However, even hacking the code so that ‘application/javascript’ is always return doesn’t seem to work – and I’m not sure how to fix this. Any ideas?