Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
0c3f9794
Commit
0c3f9794
authored
Aug 13, 2019
by
sgjj
Browse files
添加防xss配置
parent
3c2ce021
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/config/WebConfig.java
View file @
0c3f9794
...
...
@@ -138,8 +138,7 @@ public class WebConfig implements WebMvcConfigurer {
@Bean
public
FilterRegistrationBean
xssFilterRegistration
()
{
XSSEscapeFilter
xssFilter
=
new
XSSEscapeFilter
();
FilterRegistrationBean
registration
=
new
FilterRegistrationBean
(
xssFilter
);
FilterRegistrationBean
registration
=
new
FilterRegistrationBean
(
xssFilter
);
registration
.
addUrlPatterns
(
"/*"
);
return
registration
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment