将白名单外部主机在Windows Phone的phonegap [英] Whitelist external hosts in phonegap for windows phone
问题描述
我需要从我的phonegap应用程序对AJAX调用网页。
对于Android,我需要在 phonegap.xml 。
对于iPhone,我还在phonegap.plist中添加了 ExternalHosts 。 / p>
我要在哪里为Windows手机添加我的网页?
WP7目前不支持白名单。请参阅相关问题:
然而,WP7 PhoneGap实现已经有一个JavaScript Shim for XHR请求本地存储中的文件,所以我假设白名单是可能的,并将及时。
为什么不添加到JIRA的PhoneGap Callback / Cordova!)
https:/ /issues.apache.org/jira/browse/CB
I need to make AJAX calls to a webpage from my phonegap app.
For Android I needed to add the page in phonegap.xml.
For iPhone I also added an ExternalHosts in phonegap.plist.
Where do I have to add my webpage for windows phones?
Whitelisting is currently not supported for WP7. See this related question:
What is the state of whitelisting in phonegap 1.3.0?
However, the WP7 PhoneGap implementation already has a JavaScript shim for XHR requests to files within local storage, so I am assuming that a whitelist is possible and will come in time.
Why not add it to JIRA for PhoneGap (Callback / Cordova!)
https://issues.apache.org/jira/browse/CB
这篇关于将白名单外部主机在Windows Phone的phonegap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!