Enable CORS
This commit is contained in:
parent
9b622cb94b
commit
0bfc6c480f
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue