Commit 4361c312 authored by Kim, Chaerin's avatar Kim, Chaerin
Browse files

불필요 삭제

parent 52e6b843
...@@ -31,12 +31,7 @@ const Screen = () => { ...@@ -31,12 +31,7 @@ const Screen = () => {
}; };
useEffect(() => { useEffect(() => {
let newSocket = io("http://localhost:8080", { let newSocket = io("http://localhost:8080");
withCredentials: true,
extraHeaders: {
"my-custom-header": "abcd",
},
});
let localStream; let localStream;
newSocket.on("userEnter", (data) => { newSocket.on("userEnter", (data) => {
createReceivePC(data.id, newSocket); createReceivePC(data.id, newSocket);
......
...@@ -14,8 +14,6 @@ const io = new Server(server, { ...@@ -14,8 +14,6 @@ const io = new Server(server, {
cors: { cors: {
origin: "http://localhost:3000", origin: "http://localhost:3000",
methods: ["GET", "POST"], methods: ["GET", "POST"],
allowedHeaders: ["my-custom-header"],
credentials: true,
}, },
}); });
app.use(express.json()); app.use(express.json());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment