diff --git a/src/main/java/com/fydp/backend/controllers/AppController.java b/src/main/java/com/fydp/backend/controllers/AppController.java index f597756..3b09c73 100644 --- a/src/main/java/com/fydp/backend/controllers/AppController.java +++ b/src/main/java/com/fydp/backend/controllers/AppController.java @@ -74,6 +74,7 @@ public List 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");