phonegap app ERROR whitelist rejection: url='http://xyz.com'

cordova, jquery, jquery-mobile, json, jsonp

Solution

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.

Problem

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

Original source