From 0663ac873e103e69e6d2a4d1efab3909a7f092b0 Mon Sep 17 00:00:00 2001 From: Noah Spannbauer Date: Wed, 31 Dec 2025 17:34:44 -0600 Subject: [PATCH] enabling cors --- api/src/main.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api/src/main.ts b/api/src/main.ts index 5c92465..fed4801 100644 --- a/api/src/main.ts +++ b/api/src/main.ts @@ -9,11 +9,7 @@ async function bootstrap() { const httpService = new HttpService(); const app = await NestFactory.create(AppModule); - app.enableCors({ - origin: 'https://flying-test.salmonpond-4268003a.centralus.azurecontainerapps.io', - methods: 'GET,HEAD,PUT,PATCH,POST,DELETE', - credentials: true, - }); + app.enableCors(); app.setGlobalPrefix('api'); app.useGlobalFilters(new HttpExceptionFilter()); app.use(