fixed cors

This commit is contained in:
AmirHossein Mahmoodi
2025-05-04 12:23:22 +03:30
parent 25fcd1021f
commit 1f9ed33512

View File

@@ -9,12 +9,10 @@ import { SendMessageDto } from './dto/sendMessage.dto';
import { SocketService } from './socket.service';
@WebSocketGateway({
namespace: '/notification',
cors: {
origin: '*',
},
transports: ['websocket'],
path: '/notification/socket.io', // آدرس سفارشی
})
export class SocketGateway implements OnGatewayConnection {
@WebSocketServer()