From f2e0c0b19e960129293c2cfb309f8645ee5b41c7 Mon Sep 17 00:00:00 2001 From: winter <2436197699@qq.com> Date: Thu, 28 Dec 2023 12:02:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B7=A8=E5=9F=9F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/teammodel/security/SecurityConfiguration.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/cn/teammodel/security/SecurityConfiguration.java b/src/main/java/cn/teammodel/security/SecurityConfiguration.java index fbebdaf..93c7ff3 100644 --- a/src/main/java/cn/teammodel/security/SecurityConfiguration.java +++ b/src/main/java/cn/teammodel/security/SecurityConfiguration.java @@ -37,6 +37,8 @@ public class SecurityConfiguration { http // CSRF禁用,因为不使用session .csrf().disable() + .cors().configurationSource(corsConfigurationSource()) + .and() // 禁用HTTP响应标头 .headers().cacheControl().disable() .and()