fix x2
All checks were successful
/ build (push) Successful in 14s

This commit is contained in:
Soph :3 2024-05-23 17:45:42 +03:00
parent 351e5e64c0
commit e3cefafd66
Signed by: sophie
GPG key ID: EDA5D222A0C270F2

View file

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