diff --git a/src/bootstrap.ts b/src/bootstrap.ts index 8878ff30..0ca1a636 100644 --- a/src/bootstrap.ts +++ b/src/bootstrap.ts @@ -35,7 +35,9 @@ export async function bootstrap() { // Origin 如果不是数组就全部允许跨域 app.enableCors( - Origin + isDev + ? undefined + : Origin ? { origin: (origin, callback) => { let currentHost: string