IONIC, Controle de Acesso-Permitir Origem
Eu tento enviar solicitação http com $ http (angular) com este código:
$http({
method: 'GET',
url: 'http://192.168.0.17:9000',
header: {'Access-Control-Allow-Origin': "*"},
}).then(getEventsSuccess, getEventsError);
Mas isso não funciona e eu tenho no console da Web este erro:
XMLHttpRequest cannot load http://192.168.0.17:9000/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access.
Você tem uma solução ?