Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 938 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 938 Bytes

Jahia CSRF Guard

This module will add CSRF token protection on all call to a Jahia Action. It's based on OWASP CSRFGuard library.

How to upgrade OWASP CSRFGuard

Minor version

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.

Major version

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.

Minification

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

Open-Source

This is an Open-Source module, you can find more details about Open-Source @ Jahia in this repository.