4.1.2.6 Ensure 'httpOnlyCookies' HttpOnly attribute is set to 'True' for the authentication cookies
Information
The HttpOnly attribute on a cookie prevents the cookie from being accessed by the client side scripts. Preventing client-side scripts from accessing authentication cookies helps prevent Cross-Site Scripting (XSS) attacks.
Solution
Set the httpOnlyCookies attribute to true in the webAppSecurity in the ${server.config.dir}/configDropins/overrides/*.xml <webAppSecurity httpOnlyCookies="true" />