1
I’m trying to fetch some data via WS(Web Service) only when I ask to return in my app gives this error:
No 'Access-Control-Allow-Origin' header is present on the requested Resource. Origin 'null' is therefore not allowed access.
But when I try to search 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;
});
});