Notice: This answer only applies for PhoneGap version 1.x and below. From version 2.x onwards, whitelist configuration is done via cordova.xml
.
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 add www.myhost.com
as a new entry to ExternalHosts
array.
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.com
as a new entry to ExternalHosts
array.
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?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…