Fix issue with CSRF filter failing due to blocking operation