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 },