se agregaron cambios

This commit is contained in:
2025-09-12 12:51:32 -06:00
parent 91a1fa5f51
commit c9ce5d6e3a
+5 -1
View File
@@ -13,7 +13,11 @@ import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors({ exposedHeaders: ['Content-Disposition'] });
app.enableCors({
origin: [process.env.FRONTEND_URL], // solo frontend permitido
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
credentials: true,
});
app.useGlobalPipes(
new ValidationPipe({