【发布时间】:2014-02-28 00:55:39
【问题描述】:
我正在尝试为 AS3 编写一个随处使用(网络、空中、移动)OAuth 库,该库足够灵活,可以与任何 OAuth 站点或 OAuth 附近的站点一起使用。 我正在编写的示例应用程序通过 Google 进行身份验证,我想编写一个使用 google drive 的应用程序。
目前 Air 和移动应用程序运行良好,但网络 Flash 播放器应用程序不断给我这个错误:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://localhost:81/OAuthWebExample.swf cannot load data from https://accounts.google.com/o/oauth2/token.
(我在端口 80 上的非本地域域上遇到相同的错误)
我查看了https://accounts.google.com/crossdomain.xml,其中有:
<site-control permitted-cross-domain-policies="by-content-type" />
我不确定这意味着什么......
我很确定可以让 Flash 与这些 google API 对话。我该怎么做才能让它发挥作用?
(我对你使用 feedburner 或类似代理这些调用的“工作回合”不感兴趣)。
【问题讨论】:
标签: actionscript-3 flash oauth-2.0 google-oauth