Cordova: get 404 error for the all ajax request on Android device

The app build with cordova is installed on an Android device, all ajax requests are 404(NotFound). But debugging in chrome works fine. This problem can be solved by reinstalling cordova-plugin-whitelist

remove: cordova plugin remove cordova-plugin-whitelist

reinstall: cordova plugin add cordova-plugin-whitelist