diff options
author | Vitaly Takmazov | 2016-06-30 10:50:13 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-06-30 10:50:13 +0300 |
commit | 2e52796f2199e40deddff099830e40d1844f7793 (patch) | |
tree | 4cd5f5a38ac8810c3c9802836cd44d6f98bceaad /src | |
parent | 13642efd8bd1d70264392c1ee7b87f9b0c979066 (diff) |
allow * origins
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java b/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java index ecf2de46..0bb293f4 100644 --- a/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java +++ b/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java @@ -42,6 +42,6 @@ public class WebsocketConfiguration extends WebMvcConfigurerAdapter implements W } @Override public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) { - registry.addHandler(wsHandler(), "/**"); + registry.addHandler(wsHandler(), "/**").setAllowedOrigins("*"); } } |