diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2024-03-16 00:22:44 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2024-03-16 00:22:44 +0000 |
| commit | 49d9a49cc16525c3d2fc04408cec2df0defd51ac (patch) | |
| tree | 32a50ed6a0e75be0b59bb62ff6e91e76c5875f8e /src/main.ts | |
| parent | 5f701c749f51ff37a43fab71edd38eda12169876 (diff) | |
Add dockerfile
Diffstat (limited to 'src/main.ts')
| -rw-r--r-- | src/main.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.ts b/src/main.ts index a01b32f..fb1b1bd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,6 +5,7 @@ import { ValidationPipe } from '@nestjs/common'; async function bootstrap() { const app = await NestFactory.create(AppModule); app.useGlobalPipes(new ValidationPipe()); + app.enableCors(); await app.listen(3000); } bootstrap(); |
