Skip to content

Commit

Permalink
Merge pull request #235 from hongwei1/develop
Browse files Browse the repository at this point in the history
refactor/set the secure and http-only to true as default
  • Loading branch information
simonredfern authored Nov 21, 2023
2 parents 40e289c + 5ff8bbc commit 33f9610
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,12 @@ 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-->
<session-config>
<cookie-config>
<secure>true</secure>
<http-only>true</http-only>
</cookie-config>
</session-config>

</web-app>

0 comments on commit 33f9610

Please sign in to comment.