jmurrayufo/ZooBot

Investigate the use of Authentication in javascript HTTP calls

Opened this issue · 1 comments

Investigate the use of Authentication in javascript HTTP calls

https://stackoverflow.com/questions/1652178/basic-authentication-with-xmlhttprequest

var XMLReq = new XMLHttpRequest();
XMLReq.open("GET", "http://twitter.com/account/verify_credentials.json", false, "TestAct", "password");
XMLReq.setRequestHeader("Authorization", "Basic " + btoa("username:password"));
XMLReq.send(null);