This override captures any exception of type HttpAntiForgeryException and redirects to the base URL of a site.
The purpose is to capture any Login exceptions when a page has been sitting for a long time and the token has expired. It will not throw an error but redirect to the home page.
This is an automatic override and no client code is required for this to work.