Skip to content

Commit

Permalink
Merge pull request #8636 from ABNG/patch-1
Browse files Browse the repository at this point in the history
Patch 1
  • Loading branch information
kamilmysliwiec committed Nov 23, 2021
2 parents 21d5b6a + bfe4868 commit 6b6cd7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sample/02-gateways/src/events/events.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ import { from, Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { Server } from 'socket.io';

@WebSocketGateway()
@WebSocketGateway({
cors: {
origin: '*',
},
})
export class EventsGateway {
@WebSocketServer()
server: Server;
Expand Down

0 comments on commit 6b6cd7e

Please sign in to comment.