From e3cefafd66705a5896196d9b8e8f364ab750ccc7 Mon Sep 17 00:00:00 2001 From: sophie Date: Thu, 23 May 2024 17:45:42 +0300 Subject: [PATCH] fix x2 --- server/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/index.ts b/server/src/index.ts index 676b960..7a4628a 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -58,7 +58,7 @@ const app = new Elysia() .use( cors({ origin: (context) => { - return /^(http(|s):\/\/|)(api\.chat\.sad\.ovh|sad\.ovh|127\.0\.0\.1|localhost)(:\d{1,4}|)(\/|)$/gm.test( + return /^(http(|s):\/\/|)(api\.chat\.sad\.ovh|sad\.ovh|127\.0\.0\.1|localhost)(:\d{1,4}|)(\/|).*$/gm.test( context.url ); // TODO fix this },