Investigate the use of Authentication in javascript HTTP calls
Opened this issue · 1 comments
jmurrayufo commented
Investigate the use of Authentication in javascript HTTP calls
jmurrayufo commented
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);