Web socket client connection issue in Windows 8.1+ IE 11 + loopback not allowed

泪湿孤枕 提交于 2021-01-28 04:48:37

问题


I am have created a C++ web socket server. I am trying to access it from IE 11 using web socket Javascript API. I am trying to connect to localhost.

function JSInit() {

try {        
    var host = "ws://127.0.0.1:25000/test";       

    remoteEngine = new WebSocket(host);
    remoteEngine.onopen = onWebSocketOpen;  
    remoteEngine.onmessage = onRecvMessage;
    remoteEngine.onclose = onWebSocketClose;
    remoteEngine.onclose = onWebSocketError;
}
catch (err) {
    alert(err.message);
}
}

Is there in any restriction on accessing ?Anyway to allow access to it.


回答1:


Localhost loop back is not allowed in IE 11 on Window 8 onwards

http://blogs.msdn.com/b/ieinternals/archive/2012/03/23/understanding-ie10-enhanced-protected-mode-network-security-addons-cookies-metro-desktop.aspx




回答2:


Please add the website to the zone of trusted sites at IE | Tools | Internet Options | Security and try again.



来源:https://stackoverflow.com/questions/19979870/web-socket-client-connection-issue-in-windows-8-1-ie-11-loopback-not-allowed

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