Skip to content

Commit

Permalink
Revert last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalinow committed Apr 19, 2020
1 parent ede02f1 commit a05340e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ public WebMvcConfigurer corsConfigurer() {
return new WebMvcConfigurerAdapter() {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("*")
.allowedOrigins("*");
registry.addMapping("http://localhost:4200")
.allowedOrigins("http://localhost:4200");
registry.addMapping("/**")
.allowedOrigins("http://localhost:4200");
}
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer {
@Override
public void configureMessageBroker(final MessageBrokerRegistry registry) {
LOGGER.info("------------------------------------configureMessageBroker");
registry.enableSimpleBroker("/chat", "/raid");
registry.enableSimpleBroker("/chat");
registry.setApplicationDestinationPrefixes("/app");
}

Expand Down

0 comments on commit a05340e

Please sign in to comment.