是否有XDomainRequest相当于在Firefox? [英] Is there a XDomainRequest equivalent in Firefox?

查看:169
本文介绍了是否有XDomainRequest相当于在Firefox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一种等效于Internet Explorer的XDomainRequest在Firefox或任何其他浏览器?

Is there an equivalent to Internet Explorer's XDomainRequest in Firefox or any of the other browsers?

我想访问某个服务/网站我的域之外。

I'd like to access a service/website outside of my domain.

推荐答案

在Internet Explorer 8中的XDomainRequest对象是专利方法请求资源,这是外面的同源策略。

The XDomainRequest object in Internet Explorer 8 is a proprietary method for requesting resources which are outside the "same-origin policy."

的Firefox 3.5+和Safari 4+允许通过XMLHTT prequest对象跨域请求。支持XMLHTT prequest 2级用户代理必须有跨域资源共享的支持(CORS),它允许检索资源,如果资源宣布,它可以从其他领域提出要求。

Firefox 3.5+ and Safari 4+ allow cross-domain requests through the XMLHTTPRequest object. User agents that support XMLHTTPRequest Level 2 must have Cross-Origin Resource Sharing support (CORS), which allows retrieving the resource IF the resource announces that it can be requested from other domains.

请记住,资源必须声明自己是一个标准的用户代理之前,跨域资源将获取的资源。

Keep in mind that the resource must declare itself as a cross-origin resource before a compliant user agent will retrieve the resource.

这里更多信息: http://www.w3.org/TR/cors/ 并  在 / TR / XMLHtt prequest2 在W3C网站上。

More info here: http://www.w3.org/TR/cors/ and at /TR/XMLHttpRequest2 on the W3C website.

这篇关于是否有XDomainRequest相当于在Firefox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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