# Ionic Api integration

**URL:** <https://forum.ionicframework.com/t/ionic-api-integration/158332>\
**Category:** Ionic Framework\
**Created:** [March 6, 2019, 9:25am UTC](https://forum.ionicframework.com/t/ionic-api-integration/158332 "2019-03-06T09:25:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![apeksha07](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@apeksha07](https://forum.ionicframework.com/u/apeksha07)\
**Post date:** [March 6, 2019, 9:25am UTC](https://forum.ionicframework.com/t/ionic-api-integration/158332/1 "2019-03-06T09:25:16Z")

</div>

Please helop me how to resolve this error

Access to XMLHttpRequest at ‘[http://192.168.168.26/wfms\_timesheet/public/login](http://192.168.168.26/wfms_timesheet/public/login)’ from origin ‘[http://localhost:8100](http://localhost:8100)’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status.

---

<div class="post-metadata">

**Author:** ![gokujy](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gokujy/32/117753_2.png) [@gokujy](https://forum.ionicframework.com/u/gokujy)\
**Post date:** [March 6, 2019, 9:45am UTC](https://forum.ionicframework.com/t/ionic-api-integration/158332/2 "2019-03-06T09:45:07Z")

</div>

Allows to you request any site with ajax from any source. Adds to response ‘Allow-Control-Allow-Origin: \*’ header

Add this extension to your browser: **Allow-Control-Allow-Origin**

i hope it help you 🙂

---

<div class="post-metadata">

**Author:** ![apeksha07](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@apeksha07](https://forum.ionicframework.com/u/apeksha07)\
**Post date:** [March 6, 2019, 10:02am UTC](https://forum.ionicframework.com/t/ionic-api-integration/158332/3 "2019-03-06T10:02:02Z")

</div>

yes i have tried it is working on browser but when use android device it is not working

---

<div class="post-metadata">

**Author:** ![ravo93](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@ravo93](https://forum.ionicframework.com/u/ravo93)\
**Post date:** [March 6, 2019, 10:22am UTC](https://forum.ionicframework.com/t/ionic-api-integration/158332/4 "2019-03-06T10:22:28Z")

</div>

Read this topics:  
[https://blog.ionicframework.com/handling-cors-issues-in-ionic/](https://blog.ionicframework.com/handling-cors-issues-in-ionic/)

> **[Ionic Documentation](https://ionicframework.com/docs/faq/cors)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards
