IONIC, Access-Control-Allow-Origin

Ich versuche, eine http-Anfrage mit $ http (eckig) mit diesem Code zu senden:

$http({
              method: 'GET',
              url: 'http://192.168.0.17:9000',
              header: {'Access-Control-Allow-Origin': "*"},
        }).then(getEventsSuccess, getEventsError);

Aber das funktioniert nicht und ich habe in der Webkonsole diesen Fehler:

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.

Hast du eine Lösung?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage