Explorar o código

fix allowed origin

tripeur %!s(int64=4) %!d(string=hai) anos
pai
achega
af3807af4d

+ 1 - 1
src/main/java/fr/jaquin/bdlg/planner/websockets/WebSocketConfig.java

@@ -19,7 +19,7 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
   @Override
   public void registerStompEndpoints(final StompEndpointRegistry registry) {
     registry.addEndpoint("/ws")
-        .setAllowedOrigins("https://bdlg-planner.jaquin.fr/*", "http://localhost/*").withSockJS();
+        .setAllowedOrigins("https://bdlg-planner.jaquin.fr'", "http://localhost").withSockJS();
   }
 
 }