瀏覽代碼

fix allowed origin

tripeur 4 年之前
父節點
當前提交
af3807af4d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/fr/jaquin/bdlg/planner/websockets/WebSocketConfig.java

+ 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();
   }
 
 }