Skip to content

Commit

Permalink
feat: update WebSocketConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
FacerAin authored Aug 1, 2024
1 parent b7e001c commit 2f165e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/dnd/timeet/config/WebSocketConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public void configureMessageBroker(MessageBrokerRegistry config) {
@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
registry.addEndpoint("/ws")
.setAllowedOriginPatterns("*") // 모든 도메인에서 접근 허용
.withSockJS(); // /ws로 접속하면 SockJS를 통해 웹소켓 연결
.setAllowedOriginPatterns("*"); // 모든 도메인에서 접근 허용
// .withSockJS(); // /ws로 접속하면 SockJS를 통해 웹소켓 연결
}

@Override
Expand Down

0 comments on commit 2f165e9

Please sign in to comment.