https://stackoverflow.com/questions/33505130/how-to-assign-basic-authentication-header-to-xmlhttprequest
Anonymous
Code that is graceful and clear is less likely to break.