From 9a119d0421cb196c85a9470b3efc9182a7659cbe Mon Sep 17 00:00:00 2001 From: Hermann_Kitio Date: Sat, 18 Apr 2026 03:07:05 +0300 Subject: [PATCH] =?UTF-8?q?fix(cors):=20ajouter=20localhost:5174=20aux=20o?= =?UTF-8?q?rigines=20autoris=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 61376e9..2e214a9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,7 +16,11 @@ const { upgradeWebSocket, injectWebSocket } = createNodeWebSocket({ app }) app.use( '*', cors({ - origin: ['https://expria.app', 'http://localhost:5173'], + origin: [ + 'https://expria.app', + 'http://localhost:5173', + 'http://localhost:5174', + ], allowMethods: ['GET', 'POST', 'OPTIONS'], allowHeaders: ['Content-Type', 'Authorization'], })