Angular.js $http Api Request
I have kind of a strange problem. Was looking everywhere but cannot find any solution. It is my first time with angular.js and I'm trying to get content from an API into my Angular
Solution 1:
This is probably a cross-domain issue. Note that http://www.w3schools.com/website/Customers_JSON.php
has the Access-Control-Allow-Origin: *
response header and http://fingerzeig.ch/api/agenda/list
does not.
$ curl -I "http://www.w3schools.com/website/Customers_JSON.php"
If you're making a cross-domain request you have to deal with CORS.
Post a Comment for "Angular.js $http Api Request"