Ionic Api integration

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.

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:

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

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