@@ -29,6 +29,7 @@ public class PostController {
return postService.createPost(post);
}
+ @CrossOrigin
@GetMapping("/posts/all")
public Iterable<Post> getAllPosts() {
return postService.getAllPosts();