October 24, 2012

Phonegap 2.1 Whitelist rejection with Ajax

For those who are using phonegap 2.1 and want to do web app or want to request external data from your server or others,
you get use jquery Ajax.

you are using this and get a error of telling you that you have whitelist rejection, here is the solution
open you Xcode phonegap project Navigate to Resources folder, click on Cordova.plist
at the last row, rightclick and chose to "add a new row",
enter the name "ExternalHosts" change Type to arrow,
expand this and add in the link url that you want.
for more infos please read