From 2dc6bfa5a375e850afc139e456736544809f0f25 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EC=8B=AC=EC=9E=AC=EC=97=BD?= <jysim0326@ajou.ac.kr>
Date: Mon, 9 Dec 2024 16:59:47 +0900
Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=9B=B9=EC=86=8C=EC=BC=93=20?=
 =?UTF-8?q?=EC=97=B0=EA=B2=B0=EC=8B=9C=20=ED=97=A4=EB=8D=94=20=EC=82=AD?=
 =?UTF-8?q?=EC=A0=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/components/ChattingList.jsx | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/components/ChattingList.jsx b/src/components/ChattingList.jsx
index 7304639..1290261 100644
--- a/src/components/ChattingList.jsx
+++ b/src/components/ChattingList.jsx
@@ -18,12 +18,7 @@ function ChattingList() {
   const setupWebSocket = () => {
     console.log("연결하는 url", WS_URL);
     // ws.current = new WebSocket(WS_URL); // WebSocket 연결
-    ws.current = new WebSocket(WS_URL, [], {
-      headers: {
-        "Access-Control-Allow-Credentials": "true",
-        "Access-Control-Allow-Origin": `${process.env.REACT_APP_BASE_URL}`,
-      },
-    });
+    ws.current = new WebSocket(WS_URL);
 
     ws.current.onopen = () => {
       console.log('WebSocket 연결 성공');
-- 
GitLab