#940 Backport XSRF bugfixes from 1.5.6
Update version to 1.4.12