Ionic Api integration

#1

Please helop me how to resolve this error

Access to XMLHttpRequest at ‘http://192.168.168.26/wfms_timesheet/public/login’ from origin ‘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.

#2

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 :slight_smile:

#3

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

#4

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