Add support for authenticated XHR.