sim*_*ple 5 html javascript google-chrome
替代文字http://img834.imageshack.us/img834/2905/browserproblem.png
我可以禁用它以及如何禁用它?
问题是您\xe2\x80\x99 没有对您\xe2\x80\x99 发送的用户名(即身份验证令牌)和(虚拟)密码进行Base64 编码(这是HTTP 基本身份验证方案的要求)。Here\xe2\x80\x99s 您的代码大致应如下所示:
\n\nvar xhr = new XMLHttpRequest();\nxhr.open('GET', 'http://onsip.highrisehq.com/account.xml');\nxhr.setRequestHeader('Authorization', 'Basic ' + btoa(token + ':'));\nxhr.onreadystatechange = function() { console.log(xhr.responseText); };\nxhr.send();\nRun Code Online (Sandbox Code Playgroud)\n\n(我为你交换了'onsip'子域名,但你仍然需要替换token子域,但您仍然需要替换为您的身份验证令牌。)