Add filter and CSRF cookie helper method.