App Ionic not load data api rest

Good morning, I’m new here on the forum, I am starting with ionic and really needed a helping hand from you,

I created an app with ionic, and running it by the browser functions normally (ionic serves)

the application loads data from an api of a website in wordpress, standard list, but when I install the apk in some device does not list the data.

on the site in wordpress already identified a problem

Access-Control-Allow-Headers: X-Requested-With, Content-Type
Access-Control-Allow-Methods: POST, GET
Access-Control-Allow-Origin: *

and app configuration just found a parameter in config.xml, the

More as I said, when intalled on a device does not load data, it would be setting in the device? I think this can not be

much appreciate the attention

ionic uses cordova and since cordove cli v5 you need to use and configure your accesses with https://github.com/apache/cordova-plugin-whitelist

So in your config xml your can allow all requests:

And set the content-security meta tag in your index.html

Good afternoon,
problem solved

Thanks a lot for the help :slight_smile: