This is about CORS security, you need to allow the CORS in your backend application.
http://en.wikipedia.org/wiki/Cross-origin_resource_sharing Regards, Samuel On Thu, Apr 9, 2015 at 11:43 AM, Alessandro <[email protected]> wrote: > 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. > -- Samuel Castro Full Stack Developer (37) 9110-8850 -- 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.
