Cordova AJAX Call not working in Mobile but working normally in browser

After sending the cordova ajax post method it is working fine on browser but when u tested it on mobile then issue occured and you are unable to post or get request from server

The solution of this issue is you have to install cordova whitelist plugin and the command of this plugin is below.

cordova plugin add cordova-plugin-whitelist
cordova prepare

run the above two command and after that run the  below command.

cordova run android

now u can test on mobile, it will working fine.now you are good to go.