0
기본적으로 내 웹 소켓 과 인증 필요 쿠키 인 을 사용하여 인증을 받고 싶습니다. js의 websocket에 쿠키를 요청하려면 어떻게 게시해야합니까?WebSocket 자바 스크립트에서 요청 헤더 쿠키를 게시하는 방법
여기에 내 코드 언급 한 바와 같이
var uri = 'ws://' + window.location.hostname + window.location.pathname.replace('default.htm', '') + 'chat.ashx?username=' + username;
websocket = new WebSocket(uri);