瀏覽代碼

very subtle change

David Thornley 6 年之前
父節點
當前提交
2be3057e17
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/main/java/com/ziplinegreen/vault/Config/WebSocketConfig.java

+ 1
- 1
src/main/java/com/ziplinegreen/vault/Config/WebSocketConfig.java 查看文件

@@ -21,6 +21,6 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
21 21
 
22 22
     @Override
23 23
     public void registerStompEndpoints(StompEndpointRegistry registry) {
24
-        registry.addEndpoint("/vault-socket").withSockJS();
24
+        registry.addEndpoint("/vault-socket").setAllowedOrigins("*").withSockJS();
25 25
     }
26 26
 }