You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2026/09/25 14:45:34 UTC
(jspwiki) 30/33: JSPWIKI-1237 see jira for details
This is an automated email from the ASF dual-hosted git repository.
juanpablo-santos pushed a commit to branch master-2.x
in repository https://gitbox.apache.org/repos/asf/jspwiki.git
commit 00f06a66b4b589452486b5d922cd83f5ce3c77fa
Author: Juan Pablo Santos RodrÃguez <ju...@gmail.com>
AuthorDate: Fri Sep 25 13:30:52 2026 +0200
JSPWIKI-1237 see jira for details
---
.../org/apache/wiki/http/filter/COEPFilter.java | 58 ++++++++++++++++++++
.../org/apache/wiki/http/filter/CORPFilter.java | 57 +++++++++++++++++++
.../org/apache/wiki/http/filter/CSPFilter.java | 58 ++++++++++++++++++++
.../apache/wiki/http/filter/ClickJackFilter.java | 58 ++++++++++++++++++++
.../wiki/http/filter/ContentTypeOptionsFilter.java | 58 ++++++++++++++++++++
.../apache/wiki/http/filter/CrossDomainFilter.java | 57 +++++++++++++++++++
.../apache/wiki/http/filter/FilterOperations.java | 46 ++++++++++++++++
.../wiki/http/filter/ReferrerPolicyFilter.java | 60 ++++++++++++++++++++
.../org/apache/wiki/http/filter/STSFilter.java | 58 ++++++++++++++++++++
.../main/java/org/apache/wiki/util/HttpUtil.java | 14 +++++
jspwiki-war/src/main/webapp/WEB-INF/web.xml | 64 ++++++++++++++++++++++
11 files changed, 588 insertions(+)
diff --git a/jspwiki-http/src/main/java/org/apache/wiki/http/filter/COEPFilter.java b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/COEPFilter.java
new file mode 100644
index 000000000..15a679b32
--- /dev/null
+++ b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/COEPFilter.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2025 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wiki.http.filter;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import org.apache.wiki.util.HttpUtil;
+
+import java.io.IOException;
+
+
+/**
+ * Cross-Origin-Embedder-Policy (COEP): Prevents a document from loading any
+ * cross-origin resources that do not explicitly grant permission.
+ */
+public class COEPFilter implements Filter {
+
+ private String mode = "require-corp";
+
+ /** {@inheritDoc} */
+ @Override
+ public void init( final FilterConfig filterConfig ) {
+ final String configMode = FilterOperations.initValue( filterConfig, "COEPValue", "coep.value" );
+ if( configMode != null ) {
+ mode = configMode;
+ }
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void doFilter( final ServletRequest request, final ServletResponse response, final FilterChain chain ) throws IOException, ServletException {
+ HttpUtil.addHeader( response,"Cross-Origin-Embedder-Policy", mode );
+ chain.doFilter( request, response );
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void destroy() {
+ }
+
+}
diff --git a/jspwiki-http/src/main/java/org/apache/wiki/http/filter/CORPFilter.java b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/CORPFilter.java
new file mode 100644
index 000000000..b3af040e7
--- /dev/null
+++ b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/CORPFilter.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2025 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wiki.http.filter;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import org.apache.wiki.util.HttpUtil;
+
+import java.io.IOException;
+
+
+/**
+ * Cross-Origin-Resource-Policy
+ */
+public class CORPFilter implements Filter {
+
+ private String mode = "same-origin";
+
+ /** {@inheritDoc} */
+ @Override
+ public void init( final FilterConfig filterConfig ) {
+ final String configMode = FilterOperations.initValue( filterConfig, "CORPValue", "corp.value" );
+ if( configMode != null ) {
+ mode = configMode;
+ }
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void doFilter( final ServletRequest request, final ServletResponse response, final FilterChain chain ) throws IOException, ServletException {
+ HttpUtil.addHeader( response,"Cross-Origin-Resource-Policy", mode );
+ chain.doFilter( request, response );
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void destroy() {
+ }
+
+}
diff --git a/jspwiki-http/src/main/java/org/apache/wiki/http/filter/CSPFilter.java b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/CSPFilter.java
new file mode 100644
index 000000000..734fc778f
--- /dev/null
+++ b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/CSPFilter.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2025 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wiki.http.filter;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import org.apache.wiki.util.HttpUtil;
+
+import java.io.IOException;
+
+
+/**
+ * Content-Security-Policy (CSP): Mitigates XSS and other injection attacks by
+ * defining approved sources of content that the browser can load.
+ */
+public class CSPFilter implements Filter {
+
+ private String mode = "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self'; img-src 'self';";
+
+ /** {@inheritDoc} */
+ @Override
+ public void init( final FilterConfig filterConfig ) {
+ final String configMode = FilterOperations.initValue( filterConfig, "CSPValue", "csp.value" );
+ if( configMode != null ) {
+ mode = configMode;
+ }
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void doFilter( final ServletRequest request, final ServletResponse response, final FilterChain chain ) throws IOException, ServletException {
+ HttpUtil.addHeader( response,"Content-Security-Policy", mode );
+ chain.doFilter( request, response );
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void destroy() {
+ }
+
+}
diff --git a/jspwiki-http/src/main/java/org/apache/wiki/http/filter/ClickJackFilter.java b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/ClickJackFilter.java
new file mode 100644
index 000000000..8da55b1a1
--- /dev/null
+++ b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/ClickJackFilter.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2025 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wiki.http.filter;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import org.apache.wiki.util.HttpUtil;
+
+import java.io.IOException;
+
+
+/**
+ * X-Frame-Options: Prevents clickjacking attacks by controlling whether a page can be
+ * rendered within an {@code <frame>}, {@code <iframe>}, {@code <embed>}, or {@code <object>}.
+ */
+public class ClickJackFilter implements Filter {
+
+ private String mode = "DENY";
+
+ /** {@inheritDoc} */
+ @Override
+ public void init( final FilterConfig filterConfig ) {
+ final String configMode = FilterOperations.initValue( filterConfig, "mode", "clickjack.mode" );
+ if( configMode != null && ( configMode.equals( "DENY" ) || configMode.equals( "SAMEORIGIN" ) ) ) {
+ mode = configMode;
+ }
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void doFilter( final ServletRequest request, final ServletResponse response, final FilterChain chain ) throws IOException, ServletException {
+ HttpUtil.addHeader( response,"X-FRAME-OPTIONS", mode );
+ chain.doFilter( request, response );
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void destroy() {
+ }
+
+}
diff --git a/jspwiki-http/src/main/java/org/apache/wiki/http/filter/ContentTypeOptionsFilter.java b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/ContentTypeOptionsFilter.java
new file mode 100644
index 000000000..6ae7dec66
--- /dev/null
+++ b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/ContentTypeOptionsFilter.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2025 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wiki.http.filter;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import org.apache.wiki.util.HttpUtil;
+
+import java.io.IOException;
+
+
+/**
+ * X-Content-Type-Options: Prevents MIME type sniffing, which can lead to XSS
+ * attacks if browsers misinterpret content types.
+ */
+public class ContentTypeOptionsFilter implements Filter {
+
+ private String mode = "nosniff";
+
+ /** {@inheritDoc} */
+ @Override
+ public void init( final FilterConfig filterConfig ) {
+ final String configMode = FilterOperations.initValue( filterConfig, "ContentTypeOptionsValue", "content-type-options.value" );
+ if (configMode != null) {
+ mode = configMode;
+ }
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void doFilter( final ServletRequest request, final ServletResponse response, final FilterChain chain ) throws IOException, ServletException {
+ HttpUtil.addHeader( response,"X-Content-Type-Options", mode );
+ chain.doFilter( request, response );
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void destroy() {
+ }
+
+}
diff --git a/jspwiki-http/src/main/java/org/apache/wiki/http/filter/CrossDomainFilter.java b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/CrossDomainFilter.java
new file mode 100644
index 000000000..8557233dc
--- /dev/null
+++ b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/CrossDomainFilter.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2025 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wiki.http.filter;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import org.apache.wiki.util.HttpUtil;
+
+import java.io.IOException;
+
+
+/**
+ * X-Permitted-Cross-Domain-Policies: Restricts cross-domain data loading by specific plugins, such as Flash.
+ */
+public class CrossDomainFilter implements Filter {
+
+ private String mode = "none";
+
+ /** {@inheritDoc} */
+ @Override
+ public void init( final FilterConfig filterConfig ) {
+ final String configMode = FilterOperations.initValue( filterConfig, "XDomainValue", "cross-domain.value" );
+ if( configMode != null ) {
+ mode = configMode;
+ }
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void doFilter( final ServletRequest request, final ServletResponse response, final FilterChain chain ) throws IOException, ServletException {
+ HttpUtil.addHeader( response,"X-Permitted-Cross-Domain-Policies", mode );
+ chain.doFilter( request, response );
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void destroy() {
+ }
+
+}
diff --git a/jspwiki-http/src/main/java/org/apache/wiki/http/filter/FilterOperations.java b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/FilterOperations.java
new file mode 100644
index 000000000..f949cd9c4
--- /dev/null
+++ b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/FilterOperations.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2025 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wiki.http.filter;
+
+import javax.servlet.FilterConfig;
+import org.apache.wiki.api.spi.Wiki;
+
+import java.util.Properties;
+
+
+/**
+ * Common {@code javax.servlet.Filter} operations. Not expected to be used outside this package.
+ */
+class FilterOperations {
+
+ /**
+ * Retrieves an init value from a filter and, if not present, tries to obtain it from the Wiki properties.
+ *
+ * @param filterConfig filter configuration.
+ * @param initParameter parameter to look into in the {@code filterConfig}
+ * @param wikiFilterProp property to ask for on the Wiki properties, which is looked into the {@code jspwiki.http.filters} namespace
+ * @return the value of the init param, wiki property, or {@code null} if not present
+ */
+ static String initValue( final FilterConfig filterConfig, final String initParameter, final String wikiFilterProp ) {
+ final Properties props = Wiki.engine().find( filterConfig.getServletContext(), null ).getWikiProperties();
+ String configMode = filterConfig.getInitParameter( initParameter );
+ if( configMode == null ) {
+ configMode = props.getProperty( "jspwiki.http.filters." + wikiFilterProp );
+ }
+ return configMode;
+ }
+
+}
diff --git a/jspwiki-http/src/main/java/org/apache/wiki/http/filter/ReferrerPolicyFilter.java b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/ReferrerPolicyFilter.java
new file mode 100644
index 000000000..427aafa11
--- /dev/null
+++ b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/ReferrerPolicyFilter.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2025 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wiki.http.filter;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import org.apache.wiki.util.HttpUtil;
+
+import java.io.IOException;
+
+
+/**
+ * Referrer-Policy: Controls the amount of referrer information sent with
+ * requests, enhancing privacy and security.
+ */
+public class ReferrerPolicyFilter implements Filter {
+
+ // Default to same-origin: wiki URLs can carry sensitive query parameters, so the URL must never reach a
+ // third-party destination via the Referer header. Deployments may still override via ReferrerPolicyPValue.
+ private String mode = "same-origin";
+
+ /** {@inheritDoc} */
+ @Override
+ public void init( final FilterConfig filterConfig ) {
+ final String configMode = FilterOperations.initValue( filterConfig, "ReferrerPolicyPValue", "referrer-policy.value" );
+ if( configMode != null ) {
+ mode = configMode;
+ }
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void doFilter( final ServletRequest request, final ServletResponse response, final FilterChain chain ) throws IOException, ServletException {
+ HttpUtil.addHeader( response,"Referrer-Policy", mode );
+ chain.doFilter( request, response );
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void destroy() {
+ }
+
+}
diff --git a/jspwiki-http/src/main/java/org/apache/wiki/http/filter/STSFilter.java b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/STSFilter.java
new file mode 100644
index 000000000..59168a7f4
--- /dev/null
+++ b/jspwiki-http/src/main/java/org/apache/wiki/http/filter/STSFilter.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2025 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wiki.http.filter;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import org.apache.wiki.util.HttpUtil;
+
+import java.io.IOException;
+
+
+/**
+ * Strict-Transport-Security (HSTS): Enforces HTTPS-only communication,
+ * preventing downgrade attacks and cookie hijacking.
+ */
+public class STSFilter implements Filter {
+
+ private String mode = "max-age=63072000; includeSubDomains; preload";
+
+ /** {@inheritDoc} */
+ @Override
+ public void init( final FilterConfig filterConfig ) {
+ final String configMode = FilterOperations.initValue( filterConfig, "STSValue", "sts.value" );
+ if( configMode != null ) {
+ mode = configMode;
+ }
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void doFilter( final ServletRequest request, final ServletResponse response, final FilterChain chain ) throws IOException, ServletException {
+ HttpUtil.addHeader( response,"Strict-Transport-Security", mode );
+ chain.doFilter( request, response );
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public void destroy() {
+ }
+
+}
diff --git a/jspwiki-util/src/main/java/org/apache/wiki/util/HttpUtil.java b/jspwiki-util/src/main/java/org/apache/wiki/util/HttpUtil.java
index 33e089329..ec087f3d7 100644
--- a/jspwiki-util/src/main/java/org/apache/wiki/util/HttpUtil.java
+++ b/jspwiki-util/src/main/java/org/apache/wiki/util/HttpUtil.java
@@ -22,6 +22,7 @@ import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
+import javax.servlet.ServletResponse;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -321,4 +322,17 @@ public final class HttpUtil {
return getAbsoluteUrl(request, null);
}
+ /**
+ * Add's a header to the response
+ *
+ * @param response servlet response in which the header is added
+ * @param headerName header's name
+ * @param headerValue header's value
+ * @since 2.12.6
+ */
+ public static void addHeader( final ServletResponse response, final String headerName, final String headerValue ) {
+ final HttpServletResponse res = ( HttpServletResponse )response;
+ res.addHeader( headerName, headerValue );
+ }
+
}
diff --git a/jspwiki-war/src/main/webapp/WEB-INF/web.xml b/jspwiki-war/src/main/webapp/WEB-INF/web.xml
index 2ec9fcdc7..ef5a2c781 100644
--- a/jspwiki-war/src/main/webapp/WEB-INF/web.xml
+++ b/jspwiki-war/src/main/webapp/WEB-INF/web.xml
@@ -99,6 +99,70 @@
<url-pattern>/*</url-pattern>
</filter-mapping>
+ <!-- optional set of servlet filters which inject OWASP recommended
+ http response headers into all outbound responses.
+ most have optional init parameters that can be used to customize the output
+ -->
+ <filter>
+ <filter-name>COEPFilter</filter-name>
+ <filter-class>org.apache.wiki.http.filter.COEPFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>COEPFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+ <filter>
+ <filter-name>CORPFilter</filter-name>
+ <filter-class>org.apache.wiki.http.filter.CORPFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>CORPFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+ <filter>
+ <filter-name>ContentTypeOptionsFilter</filter-name>
+ <filter-class>org.apache.wiki.http.filter.ContentTypeOptionsFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>ContentTypeOptionsFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+ <filter>
+ <filter-name>CrossDomainFilter</filter-name>
+ <filter-class>org.apache.wiki.http.filter.CrossDomainFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>CrossDomainFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+ <filter>
+ <filter-name>ReferrerPolicyFilter</filter-name>
+ <filter-class>org.apache.wiki.http.filter.ReferrerPolicyFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>ReferrerPolicyFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+ <filter>
+ <filter-name>STSFilter</filter-name>
+ <filter-class>org.apache.wiki.http.filter.STSFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>STSFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
<!--
HttpSessionListener used for managing WikiSession's.
-->