|Mobile development type||Hybrid (Apache Cordova app)|
|Apache Cordova framework version||Apache Cordova 4.0.0 and later|
Hybrid application that is deployed on an Android device cannot do any HTTP/HTTPS requests.
Failed to load resource: the server responded with a status of 404 (Not Found)
Apache Cordova 4.0 and above incorporates the Apache Cordova domain whitelisting, a security model which provides a configurable security policy to define which external sites may be accessed. For Android, this policy is implemented by the Apache Cordova Whitelist Plugin. If the plugin is not enabled in the project, any HTTP/HTTPS request will respond with a status of 404 (Not Found).
To enable the Apache Cordova Whitelist Plugin and allow the HTTP/HTTPS requests, complete the following steps:
- Open the project in your preferred AppBuilder client.
- Open project Properties.
- Open the Plugins tab.
- In the Core Plugins section, locate the Whitelist plugin.
- Enable the Whitelist plugin for the project.
- Rebuild the application and then deploy it on the Android device.