Skip to content

Commit

Permalink
add CORS for react frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonynd committed Jul 24, 2019
1 parent 29aec95 commit dbeb6c7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public List<String> getSummaries() {
return listener.getMessages();
}

@CrossOrigin(origins = "http://localhost:3000")
@PostMapping(value = ("/upload"), headers = ("content-type=multipart/*"))
public PdfInfo upload(@RequestParam("file") MultipartFile file) throws IOException {
logger.debug("Upload endpoint hit");
Expand Down

0 comments on commit dbeb6c7

Please sign in to comment.