Windows Phone中的跨域请求 [英] Cross domain requests in Windows phone

查看:61
本文介绍了Windows Phone中的跨域请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我领导着为多个平台开发Web应用程序解决方案的团队.我们的应用程序向位于不同域的REST服务发出AJAX请求.因此,我们应该发送跨域请求.我搜索了 可用的文档,发现我们可能需要那里描述的XDomainRequest(http://msdn.microsoft.com/en-us/library/ie/cc288060(v=vs.85).aspx).我们已经进行了更新以使用该对象,但是仍然收到错误访问被拒绝".我认为这 可能是由上面链接所引用的文档中所述的安全区域限制引起的.很遗憾,我找不到如何在Windows Phone的IE浏览器中将某些网站添加到受信任站点列表中的方法.有人可以告诉我吗 我该怎么做,或者也许有人知道我们如何在WindowsPhone浏览器中进行跨域请求.

I'm leading the team which develops web application solution for multiple platforms. Our application makes AJAX requests to the REST services which is located on a different domain. Due to this we should send cross-domain request. I have searched through the available documentation and found that we may need XDomainRequest as described there (http ://msdn.microsoft.com/en-us/library/ie/cc288060(v=vs.85).aspx). We have made updates to use this object but still getting the error "Access denied". I think this may be caused by the security zones restriction as described in document referenced by link above. Unfortunately I cannot find how can I add some web site to the list of the trusted sites in IE browser on my windows phone. Could somebody let me know how can I do this, or probably somebody know how we can do a Cross-Domain requests in WindowsPhone browser.

推荐答案

您好,

除非自以下发布以来政策发生变化,否则WP7不会实施跨域限制:

Unless policy has changed since the following posting, WP7 does not implement cross domain restrictions:

http://social.msdn.microsoft .com/Forums/zh-CN/windowsphone7series/thread/b7222987-6c19-4983-b5b0-37b6f0c97853

-Mark


这篇关于Windows Phone中的跨域请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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