I get this error:
Request from another blocked source: the same origin policy prevents reading the remote resource in link (reason: missing the CORS header 'Access-Control-Allow-Origin').
My server is an application Java
in tomcat 8
In another project I have this:
var App = angular.module('SimulatorApp', ['ngRoute', 'ngResource']);
App.controller('EOGController', ['$scope','$resource',function($scope, $resource) {
$scope.loadData = function() {
var Something = $resource("http://localhost:8090/test/databases/test", {id: "@id"});
$scope.something = Something.get({id:15});
}
}]);
Really if it calls, it gives me code 200 but the error that I mentioned before.
IF I call it from poster it works without problems or if in the browser I put the url : http://localhost:8090/test/databases/test?id=15 tb funciona