Skip to content

Commit 338780f

Browse files
committed
chore: withSockJS 추가
1 parent ab6422f commit 338780f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/example/solidconnection/chat/config/StompWebSocketConfig.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ public void registerStompEndpoints(StompEndpointRegistry registry) {
3030
List<String> strings = corsProperties.allowedOrigins();
3131
String[] allowedOrigins = strings.toArray(String[]::new);
3232
registry.addEndpoint("/connect")
33-
.setAllowedOrigins(allowedOrigins) // postman 테스트를 위해 sockJS 비활성화
33+
.setAllowedOrigins(allowedOrigins)
3434
.addInterceptors(webSocketHandshakeInterceptor)
35-
.setHandshakeHandler(customHandshakeHandler);
35+
.setHandshakeHandler(customHandshakeHandler)
36+
.withSockJS();
3637
}
3738

3839
@Override

0 commit comments

Comments
 (0)