Ionic Dev app connection issue

Dev App giving me issue while connecting with localhost with the database.
I am using Mysql and PHP API’s for ionic but when I am trying to use in browser its working fine at the same time when I try to load it in dev app then it not connecting with localhost server. what should I need to do?

I even tried to enter URL manually like but with this error occurred “correct reset” and app gets close.

Its seems like CORS issue. Tried all options but didn’t working