Skip to content

Commit 03452fc

Browse files
committed
feat(apps/api/main): enable cors
1 parent 3618d3a commit 03452fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/api/src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import { AppModule } from '~/app'
44
import { EnvService } from '~/config/env'
55

66
async function bootstrap() {
7-
const app = await NestFactory.create(AppModule)
7+
const app = await NestFactory.create(AppModule, {
8+
cors: true,
9+
})
810

911
const envService = app.get(EnvService)
1012

0 commit comments

Comments
 (0)