允许在xcode 4.1上使用phonegap的iframe中的外部主机 [英] Allow external hosts in iframe on xcode 4.1 using phonegap
问题描述
我正在尝试创建一个iPad / iPhone应用,显示一个链接到外部网站的iFrame。 (它不一定是在App Store中)。
I'm trying to create an iPad/iPhone-app that displays an iFrame that links to an external site. (It's doesn't have to be in the App Store).
问题是,当我加载应用程序,它需要我到Safari。
The problem is that when I load the app, it's takes me to Safari.
我知道在XCode的早期版本中有一个设置,您可以在应用程序中指定允许哪些外部主机。
I know there was a setting in an earlier version of XCode, where you could specify which external hosts was allowed in the app. And that worked!
我似乎找不到4.1 ...中的设置...
I can't seem to find the setting in 4.1...
任何人都知道
推荐答案
Phonegap reads是什么?我可以找到它吗?
一个名为ExternalHosts的设置 - 此设置用于将允许的外部域列入白名单。
Phonegap reads a setting called 'ExternalHosts' - this one is used to whitelist allowed external domains.
打开phonegap.plist - 密钥应该在那里,如果没有,只需添加它。
Open phonegap.plist - the key should be there, if not, simply add it.
这篇关于允许在xcode 4.1上使用phonegap的iframe中的外部主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!