I have the following in my web.xml:
<session-config>
<cookie-config>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
<session-timeout>15</session-timeout>
<tracking-mode>COOKIE</tracking-mode>
</session-config>
However, according to the OWASP Zed Attack Proxy (https://www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Project), cookies are still set by Spring Security without httpOnly or secure flags.
If I distribute the same application in Tomcat 7, it seems to respect these settings from web.xml.
source
share