From 4f399038f6b69a73ecf0312e3a73aa096d818c2e Mon Sep 17 00:00:00 2001 From: boram <128011308+bo-ram-bo-ram@users.noreply.github.com> Date: Mon, 15 Jul 2024 04:17:50 +0900 Subject: [PATCH] =?UTF-8?q?hotfix=20:=20cors=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/pickple/server/global/config/WebConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/pickple/server/global/config/WebConfig.java b/src/main/java/com/pickple/server/global/config/WebConfig.java index 553b8de3..e835400f 100644 --- a/src/main/java/com/pickple/server/global/config/WebConfig.java +++ b/src/main/java/com/pickple/server/global/config/WebConfig.java @@ -31,6 +31,7 @@ public CorsFilter corsFilter() { config.addAllowedOrigin("http://localhost:8081"); config.addAllowedOrigin("http://localhost:5173"); config.addAllowedOrigin("https://pick-ple.com"); + config.addAllowedOrigin("http://pick-ple.com"); config.addAllowedHeader("*"); config.setAllowedMethods(Arrays.asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")); source.registerCorsConfiguration("/**", config); @@ -43,4 +44,4 @@ public void addArgumentResolvers(List resolvers) resolvers.add(guestIdResolver); resolvers.add(hostIdResolver); } -} \ No newline at end of file +}