Fix jenkins when CSRF is enabled