From 0bfc6c480f41a20d4839a289ecad444f3e39b9cd Mon Sep 17 00:00:00 2001 From: Toast Date: Tue, 28 Jan 2025 11:13:35 +0100 Subject: [PATCH] Enable CORS --- src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.ts b/src/main.ts index f76bc8d..9da9f87 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,6 +3,10 @@ import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); + app.enableCors({ + credentials: true, + origin: ['https://shows.everest.tailscale/admin/'] + }); await app.listen(process.env.PORT ?? 3000); } bootstrap();