From 51c0c6cb1f172ff9aa1abfb69b2ceace7567467f Mon Sep 17 00:00:00 2001 From: pb-coding <71174645+pb-coding@users.noreply.github.com> Date: Sat, 23 Sep 2023 15:56:07 +0200 Subject: [PATCH] adapts cors --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 17f0226..9132308 100644 --- a/src/server.ts +++ b/src/server.ts @@ -17,7 +17,7 @@ import { handleJoinSession, handleNewGame } from "./game/events"; const httpServer = new Server(app); export const io = new SocketIOServer(httpServer, { cors: { - origin: "http://localhost:5173", + origin: "https://skyjo.voltvector.org", methods: ["GET", "POST"], }, });