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
 
21
 
22
     @Override
22
     @Override
23
     public void registerStompEndpoints(StompEndpointRegistry registry) {
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
         return postService.createPost(post);
29
         return postService.createPost(post);
30
     }
30
     }
31
 
31
 
32
-    @CrossOrigin(origins = "https://fast-headland-39537.herokuapp.com")
32
+    @CrossOrigin
33
     @GetMapping("/posts/all")
33
     @GetMapping("/posts/all")
34
     public Iterable<Post> getAllPosts() {
34
     public Iterable<Post> getAllPosts() {
35
         return postService.getAllPosts();
35
         return postService.getAllPosts();