No 'Access-Control-Allow-Origin' header is present on the requested resource

XMLHttpRequest cannot load…param0=D033E22AE348AEB5660FC2140AEC35850C4DA997&param1=2014-10-22&param2=1. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘’ is therefore not allowed access.
I’m getting this error when I try to access my application through the browser, using “ionic serve” cmd line.
PS: is localhost.

This is the code invoked:

    listarTimetrackerPorData: function (data, cod_profissional_prf) {
        url_webservice = URL_CONST + 'ListarTimetrackerPorDataJSON?param0=' + CH_TIMETRACKER_CONST + '&param1=' + data + '&param2=' + cod_profissional_prf;
        return $http.get(url_webservice).then(function (JSONresp) {
            return JSONresp;

What’s wrong?

Its security issue related with browser.try to run the app in android device it will work fine

You have a separated service that receive this GET right?

You should enable CORS in the webserver to enbale this kind of request OR use JSONP.

Further Reading: