Opera的跨源资源共享 [英] Cross-Origin Resource Sharing for Opera

查看:125
本文介绍了Opera的跨源资源共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人找到Opera关于跨源资源共享的解决方法?

Has anybody found a workaround for Opera regarding Cross-Origin Resource Sharing?

我想创建一个跨域 XmlHttpRequest 到my domain foo.com从我放在bar.com的脚本。

I want to make a cross domain XmlHttpRequest to my domain foo.com from my script placed on bar.com.

standard 到目前为止没有由Opera实现。

The standard so far is not implemented by Opera.

有关如何在其他浏览器上执行此操作的示例和文档这里

Examples and documentation on how to do this on other browsers can be found here

就我测试,你可以在Firefox,IE,Safari和Chrome上做到这一点。

As far as I tested, you can do this on Firefox, IE, Safari and Chrome. But not on Opera.

推荐答案

可能的替代方法是使用 JSONP 用于跨网域请求。

Possible alternative is to use JSONP for cross domain requests.

这篇关于Opera的跨源资源共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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