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

**URL:** <https://forum.ionicframework.com/t/no-access-control-allow-origin-header-is-present-on-the-requested-resource/11687>\
**Category:** ionic-v1\
**Created:** [October 24, 2014, 3:36pm UTC](https://forum.ionicframework.com/t/no-access-control-allow-origin-header-is-present-on-the-requested-resource/11687 "2014-10-24T15:36:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thiago](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@thiago](https://forum.ionicframework.com/u/thiago)\
**Post date:** [October 24, 2014, 3:36pm UTC](https://forum.ionicframework.com/t/no-access-control-allow-origin-header-is-present-on-the-requested-resource/11687/1 "2014-10-24T15:36:52Z")

</div>

**XMLHttpRequest cannot load [http://10.1.25.88/INSIX.DINSIX.WAP/SVCTimeSheetJson.svc/ListarTimetrackerPo…param0=D033E22AE348AEB5660FC2140AEC35850C4DA997&param1=2014-10-22&param2=1](http://10.1.25.88/INSIX.DINSIX.WAP/SVCTimeSheetJson.svc/ListarTimetrackerPo%E2%80%A6param0=D033E22AE348AEB5660FC2140AEC35850C4DA997&param1=2014-10-22&param2=1). No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘[http://10.1.25.88:8100](http://10.1.25.88:8100)’ 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: 10.1.25.88 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?

---

<div class="post-metadata">

**Author:** ![shamonsha](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@shamonsha](https://forum.ionicframework.com/u/shamonsha)\
**Post date:** [October 24, 2014, 3:47pm UTC](https://forum.ionicframework.com/t/no-access-control-allow-origin-header-is-present-on-the-requested-resource/11687/2 "2014-10-24T15:47:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![felipew](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/felipew/32/13128_2.png) [@felipew](https://forum.ionicframework.com/u/felipew)\
**Post date:** [October 24, 2014, 4:24pm UTC](https://forum.ionicframework.com/t/no-access-control-allow-origin-header-is-present-on-the-requested-resource/11687/3 "2014-10-24T16:24:47Z")

</div>

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: [http://enable-cors.org](http://enable-cors.org)
