Hello, I have tried to add a filter in web.xml in designer but it did not work. Here is my web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0"
metadata-complete="false">
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<filter>
<filter-name>CspFilter</filter-name>
<filter-class>ch.axonivy.fintech.acrevis.CspFilter</filter-class>
<init-param>
<param-name>value</param-name>
<param-value>default-src 'self';report-uri http://cspreport.csnc.ch/collector.cgi</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CspFilter</filter-name>
<url-pattern>*.xhtml</url-pattern>
</filter-mapping>
</web-app>
I got this from error log
asked
12.05.2017 at 00:02
Bang Ngo
(suspended)
accept rate:
0%
I no clue what you are trying to achieve. Can you provide more context?
I want to add CSP header. So I tried one of the solution here http://answers.axonivy.com/questions/904/how-can-i-set-response-headers-in-jsf which adding the filter in web.xml. But when I add the filter into web.xml I got this problem