delete CORS
test-org/trust-module-backend/pipeline/pr-rc This commit looks good Details

pull/10/head
DmitriyA 2025-03-26 08:40:53 -04:00
parent c02a6fdbe1
commit c4fdfb1280
1 changed files with 2 additions and 6 deletions

View File

@ -3,15 +3,11 @@ import { AppModule } from './app.module';
async function bootstrap() { async function bootstrap() {
const app = await NestFactory.create(AppModule); const app = await NestFactory.create(AppModule, { cors: false });
//настройка CORS //настройка CORS
app.enableCors({
origin: '*',
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS',
allowedHeaders: 'Content-Type, Authorization',
});
await app.listen(process.env.PORT ?? 3000); await app.listen(process.env.PORT ?? 3000);
} }
bootstrap(); bootstrap();