From 382134a05d259e473e2818187931eecf5b01e56d Mon Sep 17 00:00:00 2001 From: tfer2442 Date: Mon, 13 Feb 2023 23:05:36 +0900 Subject: [PATCH] add CrossOrigin annotation --- src/main/java/KNU/Navibook/server/controller/BookController.java | 1 + .../java/KNU/Navibook/server/controller/BookInfoController.java | 1 + .../java/KNU/Navibook/server/controller/BookShelfController.java | 1 + .../java/KNU/Navibook/server/controller/RecordController.java | 1 + 4 files changed, 4 insertions(+) diff --git a/src/main/java/KNU/Navibook/server/controller/BookController.java b/src/main/java/KNU/Navibook/server/controller/BookController.java index b9e03b8..81c2904 100644 --- a/src/main/java/KNU/Navibook/server/controller/BookController.java +++ b/src/main/java/KNU/Navibook/server/controller/BookController.java @@ -17,6 +17,7 @@ import java.util.List; import java.util.Map; +@CrossOrigin @Controller public class BookController { @Autowired diff --git a/src/main/java/KNU/Navibook/server/controller/BookInfoController.java b/src/main/java/KNU/Navibook/server/controller/BookInfoController.java index 918c7ed..0d23d0e 100644 --- a/src/main/java/KNU/Navibook/server/controller/BookInfoController.java +++ b/src/main/java/KNU/Navibook/server/controller/BookInfoController.java @@ -9,6 +9,7 @@ import java.util.List; +@CrossOrigin @RequestMapping("/api/bookinfo") @Controller public class BookInfoController { diff --git a/src/main/java/KNU/Navibook/server/controller/BookShelfController.java b/src/main/java/KNU/Navibook/server/controller/BookShelfController.java index 0beff4e..5623bb6 100644 --- a/src/main/java/KNU/Navibook/server/controller/BookShelfController.java +++ b/src/main/java/KNU/Navibook/server/controller/BookShelfController.java @@ -10,6 +10,7 @@ import java.util.List; +@CrossOrigin @RequestMapping("/api/bookshelf") @Controller public class BookShelfController { diff --git a/src/main/java/KNU/Navibook/server/controller/RecordController.java b/src/main/java/KNU/Navibook/server/controller/RecordController.java index 1eac5e8..fe93133 100644 --- a/src/main/java/KNU/Navibook/server/controller/RecordController.java +++ b/src/main/java/KNU/Navibook/server/controller/RecordController.java @@ -12,6 +12,7 @@ import java.util.*; +@CrossOrigin @Controller public class RecordController { @Autowired