1

是否可以与 XDomain socket.io 应用建立安全的 flashsocket 连接?在 socket.io-client 我看到以下评论:

* The FlashSocket transport. This is a API wrapper for the HTML5 WebSocket
* specification. It uses a .swf file to communicate with the server. If you want
* to serve the .swf file from a other server than where the Socket.IO script is
* coming from you need to use the insecure version of the .swf. More information
* about this can be found on the github page.

但无法在 github 页面上找到关于为什么无法将 https、xdomain flashsockets 与 socket.io 一起使用的位置。我正在为较旧的 IE 使用 flashsockets... 似乎比其他传输更可靠。

在我的应用程序中,js从我的域的子域在 server 上提供服务X,并且.swf将是来自另一台服务器的服务器,在同一域的不同子域上:

script is served from sub1.mydomain.com on server X

flash is served and connects to sub2.mydomain.com on server Y (holds socket.io server)

谢谢你的帮助!

4

1 回答 1

1

如果您混合使用安全配置和闪存传输,请注意闪存策略设置。使用 flash 可以通过多种方式使 socket.io 部署更加复杂。

于 2013-08-22T22:31:49.183 回答