Allow all origins for websocket (nginx workaround)
This commit is contained in:
parent
9608655488
commit
c32053bc8c
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user