I’m trying to do a little AngularJS app with DF as a back-end.
Even with my config allowing ‘*’ for all http methods, I kept getting a cross-domain block request so I switched to trying to do a jsonp call from a factory using the $resource function as follows:
return $resource(‘http://localhost:8090/rest/myappapi/customer?app_name=myapp’,
{callback : ‘JSON_CALLBACK’},
{
query : {method: “JSONP”}
});
(My app is hosted at http://localhost)
The resulting call from the angularjs app is:
http://localhost:8090/rest/myappapi/customer?app_name=myapp&callback=angular.callbacks._0
Which so confuses DF it gives a 500 internal error.
What am I overlooking here?