You can't. For "Security" the prohibit the use of localhost. You can either use 127.0.0.1 or setup a dummy domain locally. We wound up using the 127.0.0.1 as it was easier.
There are a number of posts on the Authorize.net Developer community forum about this (and the lack of any reference to this change in their documentation)