adapts cors

This commit is contained in:
pb-coding 2023-09-23 15:56:07 +02:00
parent 81f7fa5a9a
commit 51c0c6cb1f

View file

@ -17,7 +17,7 @@ import { handleJoinSession, handleNewGame } from "./game/events";
const httpServer = new Server(app); const httpServer = new Server(app);
export const io = new SocketIOServer(httpServer, { export const io = new SocketIOServer(httpServer, {
cors: { cors: {
origin: "http://localhost:5173", origin: "https://skyjo.voltvector.org",
methods: ["GET", "POST"], methods: ["GET", "POST"],
}, },
}); });