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 alt text

asked 12.05.2017 at 00:02

Bang%20Ngo's gravatar image

Bang Ngo
(suspended)
accept rate: 0%

converted to question 12.05.2017 at 03:35

SupportIvyTeam's gravatar image

SupportIvyTeam ♦♦
1.4k102118122

I no clue what you are trying to achieve. Can you provide more context?

(12.05.2017 at 03:36) SupportIvyTeam ♦♦ SupportIvyTeam's gravatar image

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

(12.05.2017 at 03:42) Bang Ngo Bang%20Ngo's gravatar image
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×8
×4

Asked: 12.05.2017 at 00:02

Seen: 1,981 times

Last updated: 12.05.2017 at 03:42