Added support for HTTP Basic Authentication working with cross-origin requests