问题
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:
- Chrome is okay.
- Firefox is okay if the allowInsecureFromHttps setting is set to true.
- 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