parent
351e5e64c0
commit
e3cefafd66
|
@ -58,7 +58,7 @@ const app = new Elysia()
|
||||||
.use(
|
.use(
|
||||||
cors({
|
cors({
|
||||||
origin: (context) => {
|
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
|
context.url
|
||||||
); // TODO fix this
|
); // TODO fix this
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue