Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
chore: try extended cors configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
hoeppner-dataport committed Mar 4, 2024
1 parent 53cff06 commit ce6ec4e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/socket/socket/socket.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ import { Logger } from '@nestjs/common';

@WebSocketGateway({
path: '/poc-board-collaboration-server',
cors: { origin: '*' },
cors: {
origin: '*',
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
preflightContinue: false,
optionsSuccessStatus: 204,
},
})
export class SocketGateway
implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect
Expand Down

0 comments on commit ce6ec4e

Please sign in to comment.