IE10 websocket allowInsecureFromHttps

[亡魂溺海] 提交于 2021-02-05 20:15:34

问题


I've got a websocket implementation that I'm trying to make work across browsers.

At some point, we'll migrate to wss:// (i.e. encrypted websockets) but for now, it's all ws://. When we serve a page from https that redirects to a ws host, we see the following:

  1. Chrome is okay.
  2. Firefox is okay if the allowInsecureFromHttps setting is set to true.
  3. IE10 barfs.

I know that the correct path is to simply implement wss, but in the meantime, I'm wondering if there's any configuration I can apply to IE10, similar to firefox's allowInsecureFromHttps that will permit a ws:// link to be opened from an https:// page.

Thanks!


回答1:


Sorry to say, but there is no such configuration for IE10. You need to implement wss for it.




回答2:


If you do not have a better way, you can guide the user to the chrome or firefox, but this is not the best approach. Try javascript if you can help.



来源:https://stackoverflow.com/questions/13627516/ie10-websocket-allowinsecurefromhttps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!