I can't connect to my API REST from android emulator


#1

My application is working in IOS emulator, but when I try test in android emulator don’t work the requests, this is the error:

{"data":null,"status":-1,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null]...

I have this in my config.xml

<access origin="*"/> <allow-intent href="*"/> <allow-navigation href="http://*/*" />

I have this in my AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

and I have this meta in my index.html

<meta http-equiv="Content-Security-Policy" content="default-src *; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; style-src 'self' 'unsafe-inline' *">

I am very frustrated trying different solutions without success. can anybody help me?