enabling cors

This commit is contained in:
Joe Arndt 2026-02-12 14:56:29 -06:00
parent 3f258bcd33
commit f72047b18e

View file

@ -4,6 +4,7 @@ import { NestExpressApplication } from '@nestjs/platform-express';
async function bootstrap(): Promise<void> {
const app = await NestFactory.create<NestExpressApplication>(AppModule);
app.enableCors();
app.setGlobalPrefix(process.env.PREFIX ?? 'common-cents');
await app.listen(process.env.PORT ?? 3000);
}