From a05340e3a636b2608777c16b210d2484168e2089 Mon Sep 17 00:00:00 2001 From: kalinow Date: Sun, 19 Apr 2020 19:57:32 +0200 Subject: [PATCH] Revert last changes --- .../java/com/viadee/sonarquest/SonarQuestApplication.java | 6 ++---- .../viadee/sonarquest/configurations/WebSocketConfig.java | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/sonarQuest-backend/src/main/java/com/viadee/sonarquest/SonarQuestApplication.java b/sonarQuest-backend/src/main/java/com/viadee/sonarquest/SonarQuestApplication.java index 8362b439..59e4664d 100644 --- a/sonarQuest-backend/src/main/java/com/viadee/sonarquest/SonarQuestApplication.java +++ b/sonarQuest-backend/src/main/java/com/viadee/sonarquest/SonarQuestApplication.java @@ -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"); } }; } diff --git a/sonarQuest-backend/src/main/java/com/viadee/sonarquest/configurations/WebSocketConfig.java b/sonarQuest-backend/src/main/java/com/viadee/sonarquest/configurations/WebSocketConfig.java index 7c3632fb..b3a545fb 100644 --- a/sonarQuest-backend/src/main/java/com/viadee/sonarquest/configurations/WebSocketConfig.java +++ b/sonarQuest-backend/src/main/java/com/viadee/sonarquest/configurations/WebSocketConfig.java @@ -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"); }