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? -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
