Details
Description
To mitigate common XSS-attacks the HttpOnly-Flag should be set for the session-cookie (see: https://www.owasp.org/index.php/HttpOnly). It think that it would be save to set it per default and to have the possibility to deactivate it in the Config.groovy.
I'm not sure its right for Grails to be doing this by default. Containers like Tomcat have a configuration option to enable this globally for an application. Seems having it in Grails core is the wrong place since we don't just service browser requests (REST etc.)