From 870241b37f4f1a8c1073405f44ce0b91819d6e5b Mon Sep 17 00:00:00 2001 From: Noah Spannbauer Date: Thu, 1 Jan 2026 19:23:55 -0600 Subject: [PATCH] enabling cors --- api/src/main.ts | 7 +------ client/README.md | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/api/src/main.ts b/api/src/main.ts index cc16cb7..fed4801 100644 --- a/api/src/main.ts +++ b/api/src/main.ts @@ -9,12 +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', // Or use a regex/array for dynamic origins - methods: 'GET,HEAD,PUT,PATCH,POST,DELETE', - credentials: true, - allowedHeaders: 'Content-Type,Authorization', - }); + app.enableCors(); app.setGlobalPrefix('api'); app.useGlobalFilters(new HttpExceptionFilter()); app.use( diff --git a/client/README.md b/client/README.md index af8ffdc..e69de29 100644 --- a/client/README.md +++ b/client/README.md @@ -1 +0,0 @@ -BLAH BLAH BLAH BLAH BLAH \ No newline at end of file