Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 错误#未处理的安全性访问错误https://accounts.google.com_Actionscript 3_Flash_Oauth 2.0_Google Oauth - Fatal编程技术网

Actionscript 3 错误#未处理的安全性访问错误https://accounts.google.com

Actionscript 3 错误#未处理的安全性访问错误https://accounts.google.com,actionscript-3,flash,oauth-2.0,google-oauth,Actionscript 3,Flash,Oauth 2.0,Google Oauth,我正在尝试为AS3编写一个UseAnywhere(web、air、mobile)OAuth库,它足够灵活,可以用于任何OAuth站点或OAuth附近的站点。 我正在编写的示例应用程序通过谷歌认证,我想编写一个使用谷歌硬盘的应用程序 目前,Air和mobile应用程序工作正常,但web flash player应用程序不断给我这个错误: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violati

我正在尝试为AS3编写一个UseAnywhere(web、air、mobile)OAuth库,它足够灵活,可以用于任何OAuth站点或OAuth附近的站点。 我正在编写的示例应用程序通过谷歌认证,我想编写一个使用谷歌硬盘的应用程序

目前,Air和mobile应用程序工作正常,但web flash player应用程序不断给我这个错误:

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上的非本地主机域上遇到相同错误)

我已经研究了哪些方面:

<site-control permitted-cross-domain-policies="by-content-type" />

我不知道那是什么意思

我非常确信,让flash与这些google API对话是可能的。我该怎么做才能让它工作

(我对使用feedburner或类似代理这些调用的“工作循环”不感兴趣,谢谢)

我看过

它是主策略文件,不向
accounts.google.com
域的内容授予权限(其中没有节点),因此flash player会触发
securityError

我不知道那是什么意思

:

按内容类型:[仅限HTTP/HTTPS]仅提供策略文件 内容类型:允许文本/x-跨域-策略


因此,它似乎是为子域服务和子
crossdomain.xml
文件而设计的,因此您无法直接从
accounts.google.com
加载数据。我发现flash的Google OAuth也存在同样的问题,他们不得不使用旧的
AuthSub
(它使用
accounts.googleapis.com
)来解决auth问题,过去两年似乎没有任何变化。

检查flash播放器编译、本地或外部的安全性

AIR应用程序可以连接到外部和本地文件,但嵌入式swf无法做到这一点