I developing a web app using to AngularJs and REST API. The REST APIs are hosted on some different servers.When I calling to this REST APIs, I have this problem called CROS:
XMLHttpRequest cannot load https://api.getevents.co/event?&lat=41.904196&lng=12.465974. The 'Access-Control-Allow-Origin' header has a value 'https://dev.getevents.co' that is not equal to the supplied origin. Origin 'http://localhost:8383' is therefore not allowed access.
My code is this:
modulo.controller('listaController', function ($scope, $http) {
$http.get('https://api.getevents.co/event?&lat=41.904196&lng=12.465974').success(function(data) {
$scope.names = data;
});
});*/
How can i resolve this problem