This module will add CSRF token protection on all call to a Jahia Action. It's based on OWASP CSRFGuard library.
Upgrade to a minor version should be seamless but you will have to compare the csrfguard.template.js with its original version to merge the changes.
It will depend of the changelog and breaking changes of the version, but again here do not forget to compare the csrfguard.template.js with its original version to merge the changes.
Minify the template using the following command :
terser -m -c conditionals=false -f quote_style=1 -- src/main/resources/META-INF/csrfguard.template.uncompressed.js
This is an Open-Source module, you can find more details about Open-Source @ Jahia in this repository.