diff --git a/core/src/main/resources/META-INF/web-fragment.xml b/core/src/main/resources/META-INF/web-fragment.xml
new file mode 100644
index 000000000000..c9acb6e1513c
--- /dev/null
+++ b/core/src/main/resources/META-INF/web-fragment.xml
@@ -0,0 +1,279 @@
+
+
+
+
+ jenkins
+
+
+ Stapler
+ org.kohsuke.stapler.Stapler
+
+ default-encodings
+ text/html=UTF-8
+
+
+ diagnosticThreadName
+ false
+
+ true
+
+
+
+ Stapler
+ /*
+
+
+
+ suspicious-request-filter
+ jenkins.security.SuspiciousRequestFilter
+ true
+
+
+ diagnostic-name-filter
+ org.kohsuke.stapler.DiagnosticThreadNameFilter
+ true
+
+
+ encoding-filter
+ hudson.util.CharacterEncodingFilter
+ true
+
+
+ uncaught-exception-filter
+ org.kohsuke.stapler.UncaughtExceptionFilter
+ true
+
+
+ authentication-filter
+ hudson.security.HudsonFilter
+ true
+
+
+ csrf-filter
+ hudson.security.csrf.CrumbFilter
+ true
+
+
+ error-attribute-filter
+ jenkins.ErrorAttributeFilter
+ true
+
+
+ plugins-filter
+ hudson.util.PluginServletFilter
+ true
+
+
+
+
+
+ suspicious-request-filter
+ /*
+
+
+ diagnostic-name-filter
+ /*
+
+
+ encoding-filter
+ /*
+
+
+ uncaught-exception-filter
+ /*
+
+
+ authentication-filter
+ /*
+
+
+ csrf-filter
+ /*
+
+
+ error-attribute-filter
+ /*
+
+
+ plugins-filter
+ /*
+
+
+
+
+ jenkins.util.SystemProperties$Listener
+
+
+ hudson.WebAppMain
+
+
+ jenkins.JenkinsHttpSessionListener
+
+
+
+
+ admin
+
+
+ user
+
+
+ hudson
+
+
+
+
+ Hudson
+ /loginEntry
+
+
+
+ **
+
+
+
+
+
+
+ Disable TRACE
+ /*
+ TRACE
+
+
+
+
+
+
+ other
+ /*
+
+
+
+
+
+ FORM
+
+ /login
+ /loginError
+
+
+
+
+
+ xml
+ application/xml
+
+
+
+ log
+ text/plain
+
+
+ war
+ application/octet-stream
+
+
+ ear
+ application/octet-stream
+
+
+ rar
+ application/octet-stream
+
+
+ webm
+ video/webm
+
+
+
+ java.lang.Throwable
+ /oops
+
+
+ 404
+ /404
+
+
+
+
+
+ true
+
+
+
+
diff --git a/war/src/main/webapp/WEB-INF/web.xml b/war/src/main/webapp/WEB-INF/web.xml
index 4ef6db9e3fb5..5e86c73a222e 100644
--- a/war/src/main/webapp/WEB-INF/web.xml
+++ b/war/src/main/webapp/WEB-INF/web.xml
@@ -26,256 +26,7 @@ THE SOFTWARE.
+ version="3.1">
Jenkins v${project.version}
Build management system
-
-
- Stapler
- org.kohsuke.stapler.Stapler
-
- default-encodings
- text/html=UTF-8
-
-
- diagnosticThreadName
- false
-
- true
-
-
-
- Stapler
- /*
-
-
-
- suspicious-request-filter
- jenkins.security.SuspiciousRequestFilter
- true
-
-
- diagnostic-name-filter
- org.kohsuke.stapler.DiagnosticThreadNameFilter
- true
-
-
- encoding-filter
- hudson.util.CharacterEncodingFilter
- true
-
-
- uncaught-exception-filter
- org.kohsuke.stapler.UncaughtExceptionFilter
- true
-
-
- authentication-filter
- hudson.security.HudsonFilter
- true
-
-
- csrf-filter
- hudson.security.csrf.CrumbFilter
- true
-
-
- error-attribute-filter
- jenkins.ErrorAttributeFilter
- true
-
-
- plugins-filter
- hudson.util.PluginServletFilter
- true
-
-
-
-
-
- suspicious-request-filter
- /*
-
-
- diagnostic-name-filter
- /*
-
-
- encoding-filter
- /*
-
-
- uncaught-exception-filter
- /*
-
-
- authentication-filter
- /*
-
-
- csrf-filter
- /*
-
-
- error-attribute-filter
- /*
-
-
- plugins-filter
- /*
-
-
-
-
- jenkins.util.SystemProperties$Listener
-
-
- hudson.WebAppMain
-
-
- jenkins.JenkinsHttpSessionListener
-
-
-
-
- admin
-
-
- user
-
-
- hudson
-
-
-
-
- Hudson
- /loginEntry
-
-
-
- **
-
-
-
-
-
-
- Disable TRACE
- /*
- TRACE
-
-
-
-
-
-
- other
- /*
-
-
-
-
-
- FORM
-
- /login
- /loginError
-
-
-
-
-
- xml
- application/xml
-
-
-
- log
- text/plain
-
-
- war
- application/octet-stream
-
-
- ear
- application/octet-stream
-
-
- rar
- application/octet-stream
-
-
- webm
- video/webm
-
-
-
- java.lang.Throwable
- /oops
-
-
- 404
- /404
-
-
-
-
-
- true
-
-
-