Skip to content

Commit

Permalink
Merge pull request #41 from PBTP/fix/chat-gateway
Browse files Browse the repository at this point in the history
fix: ChatGateway cors 설정 수정
  • Loading branch information
emibgo2 authored Oct 5, 2024
2 parents ec576ba + cca9040 commit 67a1aeb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chat/presentation/chat.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export class UserSocket extends Socket {

@WebSocketGateway(5000, {
cors: {
credentials: true,
origin: serviceWebUrls,
methods: ['GET', 'POST'],
},
})
export class ChatGateway implements OnGatewayConnection, OnGatewayDisconnect {
Expand Down

0 comments on commit 67a1aeb

Please sign in to comment.