From e8a368c35fa8c6d65ca09ee023ce490bc11b2ea3 Mon Sep 17 00:00:00 2001
From: SZH <szh_hello@163.com>
Date: 星期二, 09 八月 2022 16:42:11 +0800
Subject: [PATCH] 更新配置文件,解决接入网关之后的跨域问题

---
 safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/security/WebSecurityConfig.java |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/security/WebSecurityConfig.java b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/security/WebSecurityConfig.java
index 3c6ef70..9d0e1fa 100644
--- a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/security/WebSecurityConfig.java
+++ b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/security/WebSecurityConfig.java
@@ -1,6 +1,5 @@
 package com.gkhy.safePlatform.config.security;
 
-import com.gkhy.safePlatform.account.rpc.apimodel.UserAccountService;
 import com.gkhy.safePlatform.config.security.customzie.CustomizeAccessDeniedHandler;
 import com.gkhy.safePlatform.config.security.customzie.CustomizeAuthenticationEntryPoint;
 import org.apache.dubbo.config.annotation.DubboReference;
@@ -50,8 +49,6 @@
         http.headers().cacheControl();
         // jwt过滤器
         http.addFilterBefore(tokenAuthenticationFilter, UsernamePasswordAuthenticationFilter.class);
-        // 没有登录,没有权限 => 自定义返回
-        http.exceptionHandling().authenticationEntryPoint(authenticationEntryPoint).accessDeniedHandler(accessDeniedHandler);
         // 请求认证访问
         http.authorizeRequests().anyRequest().authenticated();
         // 允许跨域访问

--
Gitblit v1.9.2