From 9c7752c44faa63d9710ab978058f6f0df0742983 Mon Sep 17 00:00:00 2001 From: Arin Kulshi <158501719+arinkulshi-skylight@users.noreply.github.com> Date: Fri, 13 Dec 2024 09:03:42 -0800 Subject: [PATCH] cors fix (#485) --- .../cdc/ReportVision/controllers/ImageToTextController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/gov/cdc/ReportVision/controllers/ImageToTextController.java b/backend/src/main/java/gov/cdc/ReportVision/controllers/ImageToTextController.java index ed1a0757..090cc268 100644 --- a/backend/src/main/java/gov/cdc/ReportVision/controllers/ImageToTextController.java +++ b/backend/src/main/java/gov/cdc/ReportVision/controllers/ImageToTextController.java @@ -12,8 +12,9 @@ import org.springframework.web.bind.annotation.RestController; import org.springframework.web.client.HttpClientErrorException; import org.springframework.web.client.RestTemplate; +import org.springframework.web.bind.annotation.*; - +@CrossOrigin(origins = "*", allowCredentials = "false") @RestController @RequestMapping("/api") @Slf4j