From 7d8a20772837e54c10acede50646d2d165334467 Mon Sep 17 00:00:00 2001 From: DmitriyA Date: Thu, 10 Apr 2025 05:41:41 -0400 Subject: [PATCH] commented on the section with CORS --- src/metrics.gateway.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/metrics.gateway.ts b/src/metrics.gateway.ts index 510e016..1d1f669 100644 --- a/src/metrics.gateway.ts +++ b/src/metrics.gateway.ts @@ -4,11 +4,12 @@ import { PrometheusService } from './prometheus.service'; import { Logger } from '@nestjs/common'; @WebSocketGateway({ - cors: { - origin: '*', // В production укажите конкретные домены - methods: ['GET', 'POST'], - credentials: true - }, + /* + cors: { + origin: '*', // В production укажите конкретные домены + methods: ['GET', 'POST'], + credentials: true + }, */ namespace: '/api/metrics-ws' }) export class MetricsGateway implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect {