2013-07-24 93 views
1

我想在端口443上运行套接字服务器,闪存客户端可以连接到该套接字服务器。 我不想使用端口843来提供套接字策略文件,因为它通常由公司防火墙关闭。与843不同的端口上的闪存套接字策略服务器

我现在正在从端口443上的套接字服务器提供策略文件。但是,似乎客户端在我发送策略文件后关闭了连接。我得到这个错误信息:

SecurityErrorEvent type="securityError" bubbles=false 
cancelable=false eventPhase=2 text="Error #2048: Security sandbox 
violation: http://yy.yyy.yyyy.yyyy/path/movie.swf 
cannot load data from xx.xxx.xxx.xxx:443."] 

我检查了政策文件已成功发送:

echo -ne '<policy-file-request/>\0' | nc -v xx.xxx.xxx.xxx 443 

Connection to xx.xxx.xxx.xxx 443 port [tcp/https] succeeded! 
<cross-domain-policy> 
    <site-control permitted-cross-domain-policies="master-only"/> 
    <allow-access-from domain="*" to-ports="443" /> 
</cross-domain-policy> 

需要注意的是,从该SWF加载域(yy.yyy.yyy.yyy)是不同于服务器地址(xx.xxx.xxx.xxx)。

我在做什么错?

回答

0

尝试添加到策略文件:

<allow-http-request-headers-from domain="*" headers="*"/> 
<allow-http-request-headers-from domain="*"/> 
+0

可悲的是,我得到了同样的错误 – dndr

+0

你检查你的防火墙和设置上:http://www.macromedia.com/support/documentation/pl/flashplayer/ help/settings_manager04.html? – tomwesolowski

相关问题