Enable CORS

This commit is contained in:
Toast 2025-01-28 11:13:35 +01:00
parent 9b622cb94b
commit 0bfc6c480f

View file

@ -3,6 +3,10 @@ import { AppModule } from './app.module';
async function bootstrap() { async function bootstrap() {
const app = await NestFactory.create(AppModule); const app = await NestFactory.create(AppModule);
app.enableCors({
credentials: true,
origin: ['https://shows.everest.tailscale/admin/']
});
await app.listen(process.env.PORT ?? 3000); await app.listen(process.env.PORT ?? 3000);
} }
bootstrap(); bootstrap();