From 17142dc4b309c666515a22b2669984760c36e7b9 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Wed, 25 Nov 2020 16:38:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=8A=A0=E8=BD=BD=E5=9B=BE=E7=89=87=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/metersphere/config/ShiroConfig.java | 2 +- frontend/src/business/App.vue | 3 +-- frontend/src/business/components/xpack | 2 +- frontend/src/login/Login.vue | 8 ++------ 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/backend/src/main/java/io/metersphere/config/ShiroConfig.java b/backend/src/main/java/io/metersphere/config/ShiroConfig.java index 54505fc49b..ddc9ad8e2c 100644 --- a/backend/src/main/java/io/metersphere/config/ShiroConfig.java +++ b/backend/src/main/java/io/metersphere/config/ShiroConfig.java @@ -44,7 +44,7 @@ public class ShiroConfig implements EnvironmentAware { Map filterChainDefinitionMap = shiroFilterFactoryBean.getFilterChainDefinitionMap(); ShiroUtils.loadBaseFilterChain(filterChainDefinitionMap); filterChainDefinitionMap.put("/display/info", "anon"); - filterChainDefinitionMap.put("/display/file/*", "anon"); + filterChainDefinitionMap.put("/display/file/**", "anon"); filterChainDefinitionMap.put("/**", "apikey, authc"); return shiroFilterFactoryBean; } diff --git a/frontend/src/business/App.vue b/frontend/src/business/App.vue index 41cb26562f..aff282cd88 100644 --- a/frontend/src/business/App.vue +++ b/frontend/src/business/App.vue @@ -7,8 +7,7 @@ - -