Allow all origins for websocket (nginx workaround)

This commit is contained in:
Charles Gould 2019-12-03 19:23:37 -05:00
parent 9608655488
commit c32053bc8c

View File

@ -36,8 +36,8 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
registry.addEndpoint("/sockjs").withSockJS();
registry.addEndpoint("/stomp");
registry.addEndpoint("/sockjs").setAllowedOrigins("*").withSockJS();
registry.addEndpoint("/stomp").setAllowedOrigins("*");
}
private TaskScheduler heartbeatScheduler() {