fixed cors
This commit is contained in:
@@ -9,10 +9,11 @@ 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()
|
||||
|
||||
Reference in New Issue
Block a user