I'm trying to get some data via WS (Web Service), but when I ask to return in my app it gives this error:
In 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
But when I try to fetch via console it returns normally.
var App = angular.module('App', ['ionic']);
//listar clientes via ws somente ativos
App.get('ListaCtrl', function($scope, $http){
$http.post('http:// meu url da ws').
success(function (data) {
$scope.ret = data;
});
});