Skip to content

Commit 2a89bdf

Browse files
fix: cors missing
1 parent e172fe6 commit 2a89bdf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { AppModule } from './app.module';
33

44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
6+
app.enableCors();
67
await app.listen(3000);
78
}
89
bootstrap();

0 commit comments

Comments
 (0)