From b43b9933a36ce1e27512f761841638ef57d9abd6 Mon Sep 17 00:00:00 2001 From: oowtl Date: Thu, 16 Jan 2025 22:45:54 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20WebCorsConfig.java=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - WebCorsConfig.java 삭제 연관 이슈 - #178 --- .../common/config/WebCorsConfig.java | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 module-common/src/main/java/com/checkping/common/config/WebCorsConfig.java diff --git a/module-common/src/main/java/com/checkping/common/config/WebCorsConfig.java b/module-common/src/main/java/com/checkping/common/config/WebCorsConfig.java deleted file mode 100644 index 58d6bd87..00000000 --- a/module-common/src/main/java/com/checkping/common/config/WebCorsConfig.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.checkping.common.config; - -import org.springframework.context.annotation.Configuration; -import org.springframework.web.servlet.config.annotation.CorsRegistry; -import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; - -@Configuration -public class WebCorsConfig implements WebMvcConfigurer { - - @Override - public void addCorsMappings(CorsRegistry registry){ - registry.addMapping("/**") - .allowedOrigins("http://localhost:8080", "http://15.164.86.69:8080", "http://15.164.86.69") - .allowedMethods("GET", "POST", "PUT", "DELETE") - .allowedHeaders("*") - .allowCredentials(true) - .maxAge(3600); - } -}