through AngularJs'm trying to access a server to make me return a JSON in thi way
modulo.controller('listaController', function($scope, $http) {
$http.get('http://api.rottentomatoes.com/api/public/v1.0/movies.json?[apyKeyBlaBla]&q=Toy+Story+3&page_limit=1').success(function(data) {
$scope.items = data;
});
});
but when you launch the application I get this error:
XMLHttpRequest cannot load [Name Sting] No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8383' is therefore not allowed access.
Where is the solution? Notified that I use netbeans and I put my apyKey in the above string then the string is correct because I tested it!