source: apps/i2psnark/web.xml @ e5b7e97

Last change on this file since e5b7e97 was e5b7e97, checked in by zzz <zzz@…>, 5 years ago

Jetty: Set session cookies to HttpOnly? in all webapps
i2psnark: Remove extra mime types in i2psnark web.xml;
added to Jetty's default by now, or in our mime.properties file

  • Property mode set to 100644
File size: 1.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE web-app
3    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
4    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
5
6<web-app>
7    <filter>
8        <filter-name>XSSFilter</filter-name>
9        <filter-class>net.i2p.servlet.filters.XSSFilter</filter-class>
10    </filter>
11    <filter-mapping>
12        <filter-name>XSSFilter</filter-name>
13        <url-pattern>/*</url-pattern>
14    </filter-mapping>
15
16    <servlet>
17     <servlet-name>org.klomp.snark.web.I2PSnarkServlet</servlet-name>
18     <servlet-class>org.klomp.snark.web.I2PSnarkServlet</servlet-class>
19     <load-on-startup>1</load-on-startup>
20    </servlet>
21     
22    <!-- precompiled servlets -->
23   
24    <servlet-mapping> 
25      <servlet-name>org.klomp.snark.web.I2PSnarkServlet</servlet-name>
26      <url-pattern>/</url-pattern>
27    </servlet-mapping>
28   
29    <!-- this webapp doesn't actually use sessions or cookies -->
30    <session-config>
31        <session-timeout>
32            30
33        </session-timeout>
34        <cookie-config>
35            <http-only>true</http-only>
36        </cookie-config>
37    </session-config>
38
39</web-app>
Note: See TracBrowser for help on using the repository browser.