From 6c764f473b1e0e9dd2fb13034fe0d7295ab3724e Mon Sep 17 00:00:00 2001
From: xuefei <564615061@qq.cm>
Date: 星期二, 08 八月 2023 11:05:58 +0800
Subject: [PATCH] 允许跨域

---
 xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java b/xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java
index 60ee2e7..fabd594 100644
--- a/xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java
+++ b/xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java
@@ -81,6 +81,7 @@
 
     @Override
     protected void configure(AuthenticationManagerBuilder auth) throws Exception {
+        auth.authenticationProvider(new DaoAuthenticationProvider());
         auth.userDetailsService(userDetailsService).passwordEncoder(new BCryptPasswordEncoder());
     }
 

--
Gitblit v1.9.1