diff --git a/src/main.ts b/src/main.ts index d104832..fcba9d5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,6 +4,7 @@ import { NestExpressApplication } from '@nestjs/platform-express'; async function bootstrap(): Promise { const app = await NestFactory.create(AppModule); + app.enableCors(); app.setGlobalPrefix(process.env.PREFIX ?? 'common-cents'); await app.listen(process.env.PORT ?? 3000); }