将白名单外部主机在Windows Phone的phonegap [英] Whitelist external hosts in phonegap for windows phone

查看:161
本文介绍了将白名单外部主机在Windows Phone的phonegap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从我的phonegap应用程序对AJAX调用网页。



对于Android,我需要在 phonegap.xml



对于iPhone,我还在phonegap.plist中添加了 ExternalHosts 。 / p>

我要在哪里为Windows手机添加我的网页?

解决方案

WP7目前不支持白名单。请参阅相关问题:



在phonegap 1.3.0中列入白名单的状态是什么?



然而,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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆