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
7161b213
Commit
7161b213
authored
Oct 10, 2019
by
sgjj
Browse files
xss
parent
aa2d8ac1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/config/WebConfig.java
View file @
7161b213
...
...
@@ -150,7 +150,8 @@ public class WebConfig implements WebMvcConfigurer {
FilterRegistrationBean
registration
=
new
FilterRegistrationBean
(
xssFilter
);
xssFilter
.
excludes
.
add
(
".*file/upload.do"
);
xssFilter
.
excludes
.
add
(
".*/jsp/editor.do"
);
registration
.
addUrlPatterns
(
"/**"
);
xssFilter
.
excludes
.
add
(
"/"
);
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