Below is my JSON code
$.getJSON("http://xyz.com",function(result){
alert(result);
]});
I get this error whitelist rejection: url='http://xyz.com' ON IPHONE
In cordova/phonegap all external URLs are blocked by default. To change this, you have to add the url in question to the whitelist exception in Cordova.plist
(XCode).
Alternatively, you could add a *
wildcard to allow all domains as shown below.
cordova.2.9/phonegap after have accept all external URLs are by default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With