From 233653a45cadac8dcc93b0678fcbbb41aa4c6aac Mon Sep 17 00:00:00 2001 From: Ganghee-Lee-0522 Date: Sat, 13 Jan 2024 02:03:35 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20CORS=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - url을 추가하였습니다. --- .../domain/attack/controller/AttackController.java | 2 +- .../domain/follow/controller/FollowController.java | 2 +- .../committersserver/domain/item/controller/ItemController.java | 2 +- .../domain/member/controller/MemberController.java | 2 +- .../domain/ranking/controller/RankingController.java | 2 +- .../committersserver/domain/univ/controller/UnivController.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/committers/snowflowerthon/committersserver/domain/attack/controller/AttackController.java b/src/main/java/com/committers/snowflowerthon/committersserver/domain/attack/controller/AttackController.java index c891eb9..3204781 100644 --- a/src/main/java/com/committers/snowflowerthon/committersserver/domain/attack/controller/AttackController.java +++ b/src/main/java/com/committers/snowflowerthon/committersserver/domain/attack/controller/AttackController.java @@ -13,7 +13,7 @@ @RestController @RequiredArgsConstructor -@CrossOrigin(origins = {"https://kidari.site", "https://www.kidari.site", "http://localhost:5173"}, allowedHeaders = "*") +@CrossOrigin(origins = {"*", "https://kidari.site", "https://www.kidari.site", "http://localhost:5173"}, allowedHeaders = "*") @RequestMapping("/api/v1") public class AttackController { diff --git a/src/main/java/com/committers/snowflowerthon/committersserver/domain/follow/controller/FollowController.java b/src/main/java/com/committers/snowflowerthon/committersserver/domain/follow/controller/FollowController.java index 5742fdd..74e9807 100644 --- a/src/main/java/com/committers/snowflowerthon/committersserver/domain/follow/controller/FollowController.java +++ b/src/main/java/com/committers/snowflowerthon/committersserver/domain/follow/controller/FollowController.java @@ -10,7 +10,7 @@ @RestController @RequiredArgsConstructor -@CrossOrigin(origins = {"https://kidari.site", "https://www.kidari.site", "http://localhost:5173"}, allowedHeaders = "*") +@CrossOrigin(origins = {"*", "https://kidari.site", "https://www.kidari.site", "http://localhost:5173"}, allowedHeaders = "*") @RequestMapping("/api/v1") public class FollowController { diff --git a/src/main/java/com/committers/snowflowerthon/committersserver/domain/item/controller/ItemController.java b/src/main/java/com/committers/snowflowerthon/committersserver/domain/item/controller/ItemController.java index 51f60a6..a7a4b54 100644 --- a/src/main/java/com/committers/snowflowerthon/committersserver/domain/item/controller/ItemController.java +++ b/src/main/java/com/committers/snowflowerthon/committersserver/domain/item/controller/ItemController.java @@ -10,7 +10,7 @@ @RestController @RequiredArgsConstructor -@CrossOrigin(origins = {"https://kidari.site", "https://www.kidari.site", "http://localhost:5173"}, allowedHeaders = "*") +@CrossOrigin(origins = {"*", "https://kidari.site", "https://www.kidari.site", "http://localhost:5173"}, allowedHeaders = "*") @RequestMapping("/api/v1") public class ItemController { diff --git a/src/main/java/com/committers/snowflowerthon/committersserver/domain/member/controller/MemberController.java b/src/main/java/com/committers/snowflowerthon/committersserver/domain/member/controller/MemberController.java index fd06533..33ca22d 100644 --- a/src/main/java/com/committers/snowflowerthon/committersserver/domain/member/controller/MemberController.java +++ b/src/main/java/com/committers/snowflowerthon/committersserver/domain/member/controller/MemberController.java @@ -12,7 +12,7 @@ @RequiredArgsConstructor @RestController -@CrossOrigin(origins = {"https://kidari.site", "https://www.kidari.site", "http://localhost:5173"}, allowedHeaders = "*") +@CrossOrigin(origins = {"*", "https://kidari.site", "https://www.kidari.site", "http://localhost:5173"}, allowedHeaders = "*") @RequestMapping("/api/v1") public class MemberController { diff --git a/src/main/java/com/committers/snowflowerthon/committersserver/domain/ranking/controller/RankingController.java b/src/main/java/com/committers/snowflowerthon/committersserver/domain/ranking/controller/RankingController.java index d1f3e0d..0e22407 100644 --- a/src/main/java/com/committers/snowflowerthon/committersserver/domain/ranking/controller/RankingController.java +++ b/src/main/java/com/committers/snowflowerthon/committersserver/domain/ranking/controller/RankingController.java @@ -17,7 +17,7 @@ @RestController @RequiredArgsConstructor -@CrossOrigin(origins = {"https://kidari.site", "https://www.kidari.site", "http://localhost:5173"}, allowedHeaders = "*") +@CrossOrigin(origins = {"*", "https://kidari.site", "https://www.kidari.site", "http://localhost:5173"}, allowedHeaders = "*") @RequestMapping("/api/v1/ranking") public class RankingController { diff --git a/src/main/java/com/committers/snowflowerthon/committersserver/domain/univ/controller/UnivController.java b/src/main/java/com/committers/snowflowerthon/committersserver/domain/univ/controller/UnivController.java index 2edb520..b4f9990 100644 --- a/src/main/java/com/committers/snowflowerthon/committersserver/domain/univ/controller/UnivController.java +++ b/src/main/java/com/committers/snowflowerthon/committersserver/domain/univ/controller/UnivController.java @@ -11,7 +11,7 @@ @RestController @RequiredArgsConstructor -@CrossOrigin(origins = {"https://kidari.site", "https://www.kidari.site", "http://localhost:5173"}, allowedHeaders = "*") +@CrossOrigin(origins = {"*", "https://kidari.site", "https://www.kidari.site", "http://localhost:5173"}, allowedHeaders = "*") @RequestMapping("/api/v1") public class UnivController {