Browse Source

revert to last functional build

David Thornley 6 years ago
parent
commit
6d13233759

+ 1
- 1
src/main/java/com/ziplinegreen/vault/Config/WebSocketConfig.java View File

@@ -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 View File

@@ -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();