Grails Configuration Config.groovy grails.views.default.codecspecifies the default codec used to encode data in ${...}Grails views.
This configuration parameter can take any values none(no filtering is required), html(to avoid XSS attacks) and base64(does not have a real use case, which I know of).
The default value is Grails none(no filtering).
Questions:
- Are there any good technical reasons not to use the more secure "html" option?
- When do you decide to go with the standard "none" option in your Grails projects?
knorv source
share