PhoneGap on iPhone wont load external scripts

后端 未结 1 2014
-上瘾入骨i
-上瘾入骨i 2021-01-06 09:58

I am currently writing a simple application using PhoneGap (iOS) and running it in the simulator. The problem is that external URLs seem to refuse to load. For example usi

1条回答
  •  走了就别回头了
    2021-01-06 10:31

    Have you added the domains of the external links to the ExternalHosts entry in PhoneGap.plist ?

    There is a fairly new whitelisting system in PhoneGap that is causing a bit of confusion with external links

    From - http://wiki.phonegap.com/ :

    "Also, the latest code has the new white-list feature. If you are referencing external hosts, you will have to add the host in PhoneGap.plist under the "ExternalHosts" key. Wildcards are ok. So if you are connecting to "http://phonegap.com", you have to add "phonegap.com" to the list (or use the wildcard "*.phonegap.com" which will match subdomains as well)."

    0 讨论(0)
提交回复
热议问题