Crossdomain.xml 和 iPad
据我了解,跨域XHR的crossdomain.xml文件技术是基于Flash的。服务器上的此设置允许来自客户端(使用 Flash)的 Javascript 代码绕过同源策略。
我想知道该技术是否不再适用于 iPad 设备(因为它们不支持 Flash)。这是否也意味着所有使用此技术从客户端浏览器访问数据的 Web Mashup 根本不起作用?
如果我假设有什么问题,请道歉。
As far as I understand, the crossdomain.xml file technique for crossdomain XHR is based on Flash. This settings on the server allows Javascript code from the client (using flash) to bypass the Same Origin Policy.
I was wondering if that technique doesn't work any more in iPad devices (since they don't support Flash). Does this also imply that all those Web Mashups that are using this technique to access data from the client's browser doesn't work at all?
Apologize if I'm assuming something wrong.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不存在使用
crossdomain.xml
文件发出跨域 AJAX 请求的情况。CDAJAX是通过在服务器上设置HTTP标头来执行的,允许客户端跨域消费数据。请参阅 W3 档案中的此消息:
http://lists.w3。 org/Archives/Public/public-webapi/2006Jun/0012
另外,请查看向 Firefox 添加此功能的补丁:
https://bugzilla.mozilla.org/show_bug.cgi?id=389508
您最好的选择是使用 YQL 执行跨域调用:
http://ajaxian.com/archives/using-yql-as -a-proxy-for-cross-domain-ajax
希望这有帮助!
编辑:
此外,http://www.w3.org/ TR/访问控制/
There is no such thing as using a
crossdomain.xml
file for making cross-domain AJAX requests.CDAJAX is performed by setting HTTP headers on the server which allow the client to consume data cross-domain. See this message in the W3 archives:
http://lists.w3.org/Archives/Public/public-webapi/2006Jun/0012
Also, look at the patch that adds this functionality to Firefox:
https://bugzilla.mozilla.org/show_bug.cgi?id=389508
Your best bet would be to perform cross-domain calls using YQL:
http://ajaxian.com/archives/using-yql-as-a-proxy-for-cross-domain-ajax
Hope this helps!
EDIT:
Also, http://www.w3.org/TR/access-control/