Skip to content

Commit

Permalink
refactor/set the secure and http-only to true as default
Browse files Browse the repository at this point in the history
  • Loading branch information
hongwei1 committed Nov 21, 2023
1 parent 6fb415f commit fef7691
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions obp-api/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
<url-pattern>/*</url-pattern>
</filter-mapping>

<!--set the status of HttpOnly and Secure cookie flags
<!--set the status of HttpOnly and Secure cookie flags-->
<session-config>
<cookie-config>
<secure>true</secure>
<http-only>true</http-only>
</cookie-config>
</session-config>
-->


<!-- H2 web console -->
<!-- H2 web console
<servlet>
<servlet-name>H2Console</servlet-name>
<servlet-class>org.h2.server.web.WebServlet</servlet-class>
Expand All @@ -37,5 +37,6 @@ PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
<servlet-name>H2Console</servlet-name>
<url-pattern>/console/*</url-pattern>
</servlet-mapping>

-->

</web-app>

0 comments on commit fef7691

Please sign in to comment.