diff --git a/src/main.ts b/src/main.ts index 6447e45..7f9f1c1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,6 +12,8 @@ async function bootstrap() { app.use(helmet()); + app.setGlobalPrefix('api', { exclude: ['health'] }); + app.enableCors({ origin: isProduction ? [configService.get('app.allowedOrigin', 'https://longde.cloud')]