cors
This commit is contained in:
+2
-1
@@ -12,9 +12,10 @@ async function bootstrap() {
|
||||
.setVersion('1.0')
|
||||
.build();
|
||||
const document = SwaggerModule.createDocument(app, config);
|
||||
SwaggerModule.setup('/api', app, document);
|
||||
|
||||
SwaggerModule.setup('/api', app, document);
|
||||
app.useGlobalPipes(new ValidationPipe({ whitelist: true }));
|
||||
app.enableCors();
|
||||
await app.listen(process.env.API_PORT);
|
||||
}
|
||||
bootstrap();
|
||||
|
||||
Reference in New Issue
Block a user