|
|
@ -24,7 +24,7 @@ public class WebSocketConfig implements WebSocketConfigurer { |
|
|
|
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) { |
|
|
|
handlers.forEach(hndl -> { |
|
|
|
logger.info("Found websocket bean: {}", hndl.getPath()); |
|
|
|
registry.addHandler((WebSocketHandler) hndl, "/ws/" + hndl.getPath()); |
|
|
|
registry.addHandler((WebSocketHandler) hndl, "/ws/" + hndl.getPath()).setAllowedOrigins("*"); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|