diff --git a/backend/src/index.js b/backend/src/index.js index 56909b3..60f78e8 100644 --- a/backend/src/index.js +++ b/backend/src/index.js @@ -23,7 +23,10 @@ const io = new Server(httpServer, { }) app.use(cookieParser()); -app.use(cors()) +app.use(cors({ + origin: "http://localhost:5173", + credentials: true +})) app.use(express.json()) app.get("/ping", (_req, res) => { res.json({ message: "pong" })