3
SockJs server에 연결하려고합니다. 나는 보안 HTTPS 페이지 https://localhost/index.php
SockJs - 보안 페이지에서 보안되지 않은 웹 소켓 연결을 만들려고하는 중 오류가 발생했습니다.
var sockjs_url = 'http://localhost:9999/echo';
var sockjs = new SockJS(sockjs_url);
sockjs.onopen = function() {console.log('[*] open' + sockjs.protocol);};
sockjs.onmessage = function(e) {console.log('[.] message' + e.data);};
sockjs.onclose = function() {console.log('[*] close');};
에서 다음 코드를 실행하고 나는 SecurityError: The operation is insecure.
얻을 내가http://localhost/index.php
웹 소켓 연결이 설정 HTTP에서 실행할 경우이 openxhr-polling
다시 떨어진다.
보안 페이지에서 보안되지 않은 웹 소켓을 만들 수 있습니까?
UPDATE이 파이어 폭스에서 발생하지만 크롬에서 나는 웹 소켓
업데이트 2은 결국 나는 HTTPS 서버를 사용하여 해결을 열 수 있어요. See here.
UPDATE 3 관련 Firefox Websocket security issue