且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否有XDomainRequest相当于在Firefox?

更新时间:2023-11-28 23:29:34

在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.