Cross-Origin Resource Sharing for Opera

删除回忆录丶 提交于 2019-12-06 12:11:24

Possible alternative is to use JSONP for cross domain requests.

JSONP is the best/only way to get basic CORS functionality (only GET, as it uses a <script> tag internally) if the browser doesn't support real CORS.

The latest version of Opera's rendering engine, Presto 2.10, now supports CORS.

  • Enabled Cross-Origin Resource Sharing (CORS) for XMLHttpRequest. (Presto/2.10.232)

But a desktop version of Opera has not yet been released with this version of the rendering engine. So far only one version of Opera seems to have the CORS support, Mobile 12.

Here's an excerpt from the February 27, 2012 update to their "Web specifications support in Opera products" page:

Miscellaneous

Item | D11.60 | D11.50 | SDK 3.2 | SDK3.1 | M12 | M11.5 | M11.1 | M11 | Mini6.5
-----+--------+--------+---------+--------+-----+-------+-------+-----+--------
CORS | No     | No     | No      | No     | Yes | No    | No    | No  | No

D=desktop SDK=device SDK M=mobile Mini=Mini (-:

And now that table has been updated again since version 12 for the desktop has been released finally with CORS support:

Item | D12.00 | D11.60 | D11.50 | SDK 3.2 | SDK3.1 | M12 | M11.5 | M11.1 | M11 | Mini6.5
-----+--------+--------+--------+---------+--------+-----+-------+-------+-----+--------
CORS | Yes    | No     | No     | Yes     | Yes    | No  | Yes   | No    | No  | No

Opera has not implemented CORS yet. It is actively worked on but we do not have a release date yet.

Update 2012-07-26: As of today and since the release of Opera 12. Opera has a stable implementation of CORS. Note that Opera Mini is not yet implementing CORS.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!