Frühling Websocket erlauben Ursprung

@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfigurer extends WebSocketMessageBrokerConfigurer {

	@Override
	public void registerStompEndpoints(StompEndpointRegistry stompEndpointRegistry) {
    	stompEndpointRegistry.addEndpoint("/ws").setAllowedOriginPatterns("*").withSockJS();
	}
  
  	...
}
Pleasant Pigeon