From 5002b88bc9aca6d178ec85eb84ce95e22a53d26f Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 30 May 2024 10:41:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=80=E6=9C=89delete=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=AF=B7=E6=B1=82=E8=A2=AB=E5=88=A4=E4=B8=BA=E8=B7=A8?= =?UTF-8?q?=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/dataease/auth/interceptor/CorsConfig.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sdk/common/src/main/java/io/dataease/auth/interceptor/CorsConfig.java b/sdk/common/src/main/java/io/dataease/auth/interceptor/CorsConfig.java index 49d96768f6..6aca15eed9 100644 --- a/sdk/common/src/main/java/io/dataease/auth/interceptor/CorsConfig.java +++ b/sdk/common/src/main/java/io/dataease/auth/interceptor/CorsConfig.java @@ -34,6 +34,11 @@ public class CorsConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { - registry.addMapping("/**"); + registry.addMapping("/**") + .allowCredentials(true) + .allowedOriginPatterns("*") + .allowedHeaders("*") + .maxAge(3600) + .allowedMethods("*"); } }