From 19b868875992821a28f408cbbd2a31fa47f91072 Mon Sep 17 00:00:00 2001 From: Live <1005297262@qq.com> Date: 星期二, 09 六月 2020 11:36:10 +0800 Subject: [PATCH] IpUtils工具,清除Xss特殊字符,防止Xff注入攻击 --- ruoyi/src/main/java/com/ruoyi/framework/config/SecurityConfig.java | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ruoyi/src/main/java/com/ruoyi/framework/config/SecurityConfig.java b/ruoyi/src/main/java/com/ruoyi/framework/config/SecurityConfig.java index 4e0eca4..b27b165 100644 --- a/ruoyi/src/main/java/com/ruoyi/framework/config/SecurityConfig.java +++ b/ruoyi/src/main/java/com/ruoyi/framework/config/SecurityConfig.java @@ -99,6 +99,7 @@ ).permitAll() .antMatchers("/profile/**").anonymous() .antMatchers("/common/download**").anonymous() + .antMatchers("/common/download/resource**").anonymous() .antMatchers("/swagger-ui.html").anonymous() .antMatchers("/swagger-resources/**").anonymous() .antMatchers("/webjars/**").anonymous() -- Gitblit v1.9.2