Procházet zdrojové kódy

revert to last functional build

David Thornley před 6 roky
rodič
revize
6d13233759

+ 1
- 1
src/main/java/com/ziplinegreen/vault/Config/WebSocketConfig.java Zobrazit soubor

@@ -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("https://fast-headland-39537.herokuapp.com").withSockJS();
24
+        registry.addEndpoint("/vault-socket").setAllowedOrigins("localhost:8100").withSockJS();
25 25
     }
26 26
 }

+ 1
- 1
src/main/java/com/ziplinegreen/vault/Controller/PostController.java Zobrazit soubor

@@ -29,7 +29,7 @@ public class PostController {
29 29
         return postService.createPost(post);
30 30
     }
31 31
 
32
-    @CrossOrigin(origins = "https://fast-headland-39537.herokuapp.com")
32
+    @CrossOrigin
33 33
     @GetMapping("/posts/all")
34 34
     public Iterable<Post> getAllPosts() {
35 35
         return postService.getAllPosts();