diff --git a/backend/src/main/java/site/coduo/pairroom/controller/PairRoomController.java b/backend/src/main/java/site/coduo/pairroom/controller/PairRoomController.java index 10f9b46fb..54cc5a44b 100644 --- a/backend/src/main/java/site/coduo/pairroom/controller/PairRoomController.java +++ b/backend/src/main/java/site/coduo/pairroom/controller/PairRoomController.java @@ -24,7 +24,7 @@ @RequiredArgsConstructor @RestController -@CrossOrigin(origins = "http://localhost:3000") +@CrossOrigin(origins = {"http://localhost:3000", "http://3.35.178.58"}) public class PairRoomController implements PairRoomDocs { private final PairRoomService service; diff --git a/backend/src/main/java/site/coduo/referencelink/controller/ReferenceLinkController.java b/backend/src/main/java/site/coduo/referencelink/controller/ReferenceLinkController.java index 5341a3703..5876d77d9 100644 --- a/backend/src/main/java/site/coduo/referencelink/controller/ReferenceLinkController.java +++ b/backend/src/main/java/site/coduo/referencelink/controller/ReferenceLinkController.java @@ -6,6 +6,7 @@ import jakarta.validation.Valid; import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PatchMapping; @@ -23,6 +24,7 @@ @RequiredArgsConstructor @RestController +@CrossOrigin(origins = {"http://localhost:3000", "http://3.35.178.58"}) public class ReferenceLinkController implements ReferenceLinkDocs { private final ReferenceLinkService referenceLinkService;