fixed cors

This commit is contained in:
AmirHossein Mahmoodi
2025-05-04 12:34:51 +03:30
parent 1f9ed33512
commit 35bead14b7

View File

@@ -12,7 +12,7 @@ import { SocketService } from './socket.service';
cors: { cors: {
origin: '*', origin: '*',
}, },
transports: ['websocket'], // transports: ['websocket'],
}) })
export class SocketGateway implements OnGatewayConnection { export class SocketGateway implements OnGatewayConnection {
@WebSocketServer() @WebSocketServer()