commented on the section with CORS
test-org/trust-module-backend/pipeline/pr-rc This commit looks good Details

pull/12/head
DmitriyA 2025-04-10 05:41:41 -04:00
parent 243a45756a
commit 7d8a207728
1 changed files with 6 additions and 5 deletions

View File

@ -4,11 +4,12 @@ import { PrometheusService } from './prometheus.service';
import { Logger } from '@nestjs/common'; import { Logger } from '@nestjs/common';
@WebSocketGateway({ @WebSocketGateway({
/*
cors: { cors: {
origin: '*', // В production укажите конкретные домены origin: '*', // В production укажите конкретные домены
methods: ['GET', 'POST'], methods: ['GET', 'POST'],
credentials: true credentials: true
}, }, */
namespace: '/api/metrics-ws' namespace: '/api/metrics-ws'
}) })
export class MetricsGateway implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect { export class MetricsGateway implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect {