se agregaron cambios de seguridad
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
app.enableCors({
|
||||
origin: ['https://venus.acatlan.unam.mx/servicios_pcpuma'], // solo frontend permitido
|
||||
origin: [process.env.FRONTEND_URL], // solo frontend permitido
|
||||
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
|
||||
credentials: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user