diff --git a/src/components/ChattingList.jsx b/src/components/ChattingList.jsx index 7304639f326119de36a2f24590c23c86525e178c..129026195f40f7f6c3d821b5363354a7cf61474b 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 연결 성공');