diff --git a/src/main/java/com/ntlab/irisserver/WebSocketConfig.java b/src/main/java/com/ntlab/irisserver/WebSocketConfig.java index b2c1f5a..afb45c0 100644 --- a/src/main/java/com/ntlab/irisserver/WebSocketConfig.java +++ b/src/main/java/com/ntlab/irisserver/WebSocketConfig.java @@ -12,7 +12,7 @@ @Override public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) { - registry.addHandler((WebSocketHandler) helloWorldWebSocket(), "/ws"); + registry.addHandler(helloWorldWebSocket(), "/unit").setAllowedOrigins("*"); } @Bean