2013-07-24 38 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

相關問題