add withCredentals options to xhr when doing cross-domain requests
Merge pull request #15 from laczoka/b0c0fefa4996bd523d418ff8f9ce0b4cdd8127e4

Set withCredentials:true on XmlHttpRequest to allow authenticated cross-domain requests