Does CF10 support secure websocket wss?

后端 未结 4 1711
时光说笑
时光说笑 2020-12-20 20:09

Can someone using CF10 confirm if CF10 supports secure websocket wss://?

\"enter

4条回答
  •  别那么骄傲
    2020-12-20 20:49

    I just tried hacking this on the websocketChannel.js file where the URL is created (line 18)

    var lURL="ws://"+(_7e0)+":"+_cf_websocket_port+"/cfusion"+"/cfusion";
    

    tried to do this

    var lURL= (location.protocol === "https:" ? "wss" : "ws") + "://"+(_7e0)+":"+_cf_websocket_port+"/cfusion"+"/cfusion";
    

    But alas the wss:// connection would just never connect. BS I tell you .. pure BS!! The only issue really is with IE10 as it will not connect to an unsecured websocket channel initiated from a secure page.

提交回复
热议问题