Signed-off-by: heyhiru <hirentimbadiya74@gmail.com>
Este commit está contenido en:
heyhiru
2023-11-17 01:02:18 +05:30
padre 2fcdd417b9
commit 78ad9d4fc5
Se han modificado 2 ficheros con 2 adiciones y 2 borrados

Ver fichero

@@ -9,7 +9,7 @@ export const useSocket = () => {
}
const SocketProvider = (props) => {
const socket = useMemo(() => io("localhost:8080"), []);
const socket = io("https://video-peers-backend.vercel.app/");
return (
<SocketContext.Provider value={socket}>
{props.children}

Ver fichero

@@ -13,7 +13,7 @@ const io = new Server(server, {
});
app.use(cors({
origin: "https://video-peers-backend.vercel.app/",
origin: "localhost:8080",
methods: "GET,HEAD,PUT,PATCH,POST,DELETE",
credentials: true,
}));