From bd266bda6ec905d54a56da104cc623e039aaae7d Mon Sep 17 00:00:00 2001 From: Dahee Jo Date: Fri, 12 Mar 2021 20:06:01 +0900 Subject: [PATCH] =?UTF-8?q?#883=20[=EC=9B=B9=EC=86=8C=EC=BC=93]=20?= =?UTF-8?q?=EB=B2=88=EC=97=AD=20-=20line=2098?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 5-network/11-websocket/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5-network/11-websocket/article.md b/5-network/11-websocket/article.md index 9640541048..2ead7511c9 100644 --- a/5-network/11-websocket/article.md +++ b/5-network/11-websocket/article.md @@ -95,7 +95,7 @@ Sec-WebSocket-Version: 13 - `Sec-WebSocket-Version` -- WebSocket protocol version, 13 is the current one. ```smart header="WebSocket handshake can't be emulated" -We can't use `XMLHttpRequest` or `fetch` to make this kind of HTTP-request, because JavaScript is not allowed to set these headers. +바닐라 자바스크립트로 헤더를 설정하는 건 기본적으로 막혀있기 때문에 `XMLHttpRequest`나 `fetch`로 위 예시와 유사한 헤더를 가진 HTTP 요청을 만들 수 없습니다. ``` If the server agrees to switch to WebSocket, it should send code 101 response: