From e8274b1bebd7416645b9dd4a6c251056d53f1f0e Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Wed, 6 Dec 2023 18:14:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20TODO=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E6=94=BE=E8=A1=8C=E5=85=A8=E9=83=A8=E5=9F=9F=E5=90=8D=EF=BC=8C?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=85=81=E8=AE=B8=E8=AE=BF=E9=97=AE=E7=9A=84=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/xyz/zhouxy/plusone/web/config/WebCorsConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/plusone-basic/plusone-basic-infrastructure/src/main/java/xyz/zhouxy/plusone/web/config/WebCorsConfig.java b/plusone-basic/plusone-basic-infrastructure/src/main/java/xyz/zhouxy/plusone/web/config/WebCorsConfig.java index 1b2f55a..c9e7aa8 100644 --- a/plusone-basic/plusone-basic-infrastructure/src/main/java/xyz/zhouxy/plusone/web/config/WebCorsConfig.java +++ b/plusone-basic/plusone-basic-infrastructure/src/main/java/xyz/zhouxy/plusone/web/config/WebCorsConfig.java @@ -12,6 +12,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @Configuration public class WebCorsConfig implements WebMvcConfigurer { + // TODO 不放行全部,通过配置文件配置允许访问的域名 @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**")