commented on the section with CORS
test-org/trust-module-backend/pipeline/pr-rc This commit looks good
Details
test-org/trust-module-backend/pipeline/pr-rc This commit looks good
Details
parent
243a45756a
commit
7d8a207728
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue