【问题标题】:Socket.io xdomain https flashsocketsSocket.io xdomain https flashsockets
【发布时间】:2013-08-25 12:16:48
【问题描述】:

是否可以与 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 是从服务器 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)

感谢您的帮助!

【问题讨论】:

    标签: node.js cross-domain socket.io flashsocket


    【解决方案1】:

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

    【讨论】:

    • 嗨,Hdrerms,您能详细说明一下吗?是否可以通过使用 SSL 的闪存实现 XDomain?还是不可能,这就是为什么当 socket.io 检测到 Xdomain 时它会自动使用“Incesure”版本?
    猜你喜欢
    • 2012-05-19
    • 1970-01-01
    • 1970-01-01
    • 2018-05-14
    • 1970-01-01
    • 1970-01-01
    • 2013-10-02
    • 2014-07-11
    • 2013-06-21
    相关资源
    最近更新 更多