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 |    3 ++-
 1 files changed, 2 insertions(+), 1 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 01a6591..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());
     }
 
@@ -131,7 +132,7 @@
                 // 鑷畾涔夋潈闄愭嫆缁濆鐞嗙被
                 .exceptionHandling().accessDeniedHandler(accessDeniedHandler)
                 .and()
-                // 鍥惧舰楠岃瘉鐮佽繃婊ゅ櫒
+                //鍥惧舰楠岃瘉鐮佽繃婊ゅ櫒
                 //.addFilterBefore(imageValidateFilter, UsernamePasswordAuthenticationFilter.class)
                 // 鐭俊楠岃瘉鐮佽繃婊ゅ櫒
                 //.addFilterBefore(smsValidateFilter, UsernamePasswordAuthenticationFilter.class)

--
Gitblit v1.9.1