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';
|
||||
|
||||
@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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue