allow cors to server
This commit is contained in:
parent
c241d90c45
commit
ce6aa233c5
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@ import { AppModule } from './app.module';
|
|||
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
app.enableCors();
|
||||
await app.listen(3000);
|
||||
}
|
||||
bootstrap();
|
||||
|
|
Loading…
Reference in a new issue