FIX - Cors Bug
This commit is contained in:
@@ -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" })
|
||||
|
||||
Reference in New Issue
Block a user