correccion de configuracion para antiClickJackingOption se agrega...

correccion de configuracion para antiClickJackingOption se agrega configuracion para errores 404 y 500
parent 432fbaae
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>dla</display-name>
<!-- 1. Genericos del web.xml -->
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>dla</display-name>
<!-- 1. Genericos del web.xml -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- 2. Parametros de contexto -->
......@@ -53,7 +56,7 @@
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>httpHeaderSecurity</filter-name>
<filter-class>org.apache.catalina.filters.HttpHeaderSecurityFilter</filter-class>
......@@ -64,19 +67,36 @@
</init-param>
</filter>
<filter-mapping>
<filter-name>httpHeaderSecurity</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Session -->
<session-config>
<session-timeout>3</session-timeout>
<cookie-config>
<secure>true</secure>
</cookie-config>
<cookie-config>
<secure>true</secure>
</cookie-config>
</session-config>
<jsp-config>
<taglib>
<taglib-uri>http://dla.com/functions</taglib-uri>
<taglib-location>/WEB-INF/tld/dlaFunctions.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://dla.com/functions</taglib-uri>
<taglib-location>/WEB-INF/tld/dlaFunctions.tld</taglib-location>
</taglib>
</jsp-config>
<error-page> <exception-type>java.lang.Throwable</exception-type> <location>/jsp/errorGeneral.jsp</location> </error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/jsp/errorGeneral.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/jsp/errorGeneral.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/jsp/errorGeneral.jsp</location>
</error-page>
</web-app>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment