fix report download
Add possibilité to disbale csrf protection
Fix tests
Merge pull request #1193 from nlegoff/patch-3.8.6

[3.8.6] Patch