Skip to content

Instantly share code, notes, and snippets.

@kagemusha
Created December 5, 2011 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kagemusha/1433863 to your computer and use it in GitHub Desktop.
Save kagemusha/1433863 to your computer and use it in GitHub Desktop.
iOS Phonegap APP: Whitelist URL Error
Tested: PhoneGap 1.2, XCode 4.2
If you are trying to connect to an external server from your
appYou must add the host (e.g. github.com) to your
PhoneGap.plist file.
In XCode:
1) Find PhoneGap.plist: should be in dir <your_app>/Supporting Files
2) Find or create the ExternalHosts prop
3) The ExternalHosts prop should be an array. Add an item an input your
host name e.g. github.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment