Problem making http request from ionic app


#1

I am not able to make any http request to backend api from my device after updating my cordova to latest version. It works fine in browser.
Can any one help ??


#2

#3

let me guess… you upgraded to cordova 5.x.x and you forgot to include the whitelist plugin so no external request are allowed -.-…


#4

If you’re using a latest version of Cordova/ionic cli, you may be experiencing this issue when your app tries to make network requests.Try to include the corodova whitelist plugin and define the content security policy(csp) e.g, <meta http-equiv=“Content-Security-Policy” … in the index.html