浏览代码

more cors

David Thornley 6 年前
父节点
当前提交
05525a6063
共有 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").setAllowedOrigins("localhost:8100").withSockJS();
24
+        registry.addEndpoint("/vault-socket").setAllowedOrigins("https://fast-headland-39537.herokuapp.com").withSockJS();
25 25
     }
26 26
 }