Skip to content
Snippets Groups Projects
Commit 2dc6bfa5 authored by 심재엽's avatar 심재엽
Browse files

refactor: 웹소켓 연결시 헤더 삭제

parent 471e0658
No related branches found
No related tags found
1 merge request!43[refactor] 웹소켓 연결시 헤더 삭제
Pipeline #10989 passed
......@@ -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 연결 성공');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment