I’m new to mobile development. I’m using Phonegap/Cordova to create a cross-platform app. My code works well on Android but when I’m porting it to iPhone it’s showing an error:
[143:2003] ERROR whitelist rejection: url="abc"
Now can I overcome this problem?
You have to add allowed URLs into PhoneGap.plist’s (or Cordova.plist) ExternalHosts array.
For example, if you want to allow access to this URL
http://www.myhost.com/path/file, then addwww.myhost.comas a new entry toExternalHostsarray.If you want to allow access to content on all the subdomain of Google (e.g.
maps.google.com,mails.google.com), you can add*.google.comas a new entry toExternalHostsarray.I am not sure why you get “abc” in the link, though. Do you have “abc” as a link to anything? Is it URI fragment?