Skip to content

Commit

Permalink
refactor: StompConfig SockJS 엔드포인트에 CORS 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
otfeb committed Jun 21, 2024
1 parent d957776 commit fe3d947
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public void configureMessageBroker(MessageBrokerRegistry config) {
@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
// WebSocket 엔드포인트를 등록하고 SockJS를 활성화합니다.
registry.addEndpoint("/tetris").withSockJS();
registry.addEndpoint("/tetris").setAllowedOriginPatterns("*").withSockJS();
}
}

0 comments on commit fe3d947

Please sign in to comment.