我在一个使用基本身份验证的网站上工作。使用Chrome我已经登录使用基本的认证。现在我想从浏览器中删除基本的身份验证细节,并尝试不同的登录。
使用Chrome浏览器时,如何清除当前的基本身份验证细节?
我在一个使用基本身份验证的网站上工作。使用Chrome我已经登录使用基本的认证。现在我想从浏览器中删除基本的身份验证细节,并尝试不同的登录。
使用Chrome浏览器时,如何清除当前的基本身份验证细节?
当前回答
右键点击你的书签栏->添加页面… 设置名称为“注销基本认证” 设置URL为:
javascript: (function() {
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4) {
location.reload()
}
};
xmlhttp.open("GET", location.origin, true);
xmlhttp.setRequestHeader("Authorization", "Basic aW52YWxpZDoK");
xmlhttp.send();
return false;
})()
在任何需要注销基本认证的网页上,单击书签。
其他回答
退出Chrome时,身份验证将被清除。
Note however, that by default Chrome is running apps in the background, so it may not really exit even if you close all Chrome windows. You can either change this behavior under advanced setting, or e.g. under Windows, you can completely exit Chrome by using the Chrome icon in the systray. There should be an icon if Chrome is still running, but maybe you'll find it only in the popup with the hidden icons. The context menu of the Chrome icon has an entry to completely exit Chrome, and you can also change the setting for running apps in the background using that menu.
打开Chrome菜单 选择设置 滚动到底部 单击“显示高级设置…” 滚动到底部 在“系统”下取消选中“当谷歌Chrome浏览器关闭时继续运行后台应用程序”的复选框
我正在使用LastPass密码管理器,在LastPass删除凭据解决了这个问题。
对于Chrome 66,我在下面找到了相关选项:
右上…菜单->更多工具->清除浏览数据 点击“高级”页签 勾选“密码”框(取消你不想清除的密码) 按“清除资料”
使用一个新的隐身窗口可能更容易,但当你忘记并想要清除保存的密码时,这个方法不需要重新启动Chrome(这也有效)
在Chrome浏览器中,在URL栏的右侧,当你在一个受密码保护的URL时,你应该看到一个小的键符号。单击该符号,它将直接带您到密码管理区域,在那里您可以删除该条目。这将确保您在将来收到提示,或者有机会输入新密码并保存它。
如果你没有看到关键符号,同样的密码管理区域可以访问到Chrome ->设置->密码和表单->管理密码。或者更简单地说,这个URL - chrome://settings/passwords。
在Chrome中还没有办法做到这一点(Chrome 58)
我发现最好的解决方案是在隐身窗口中打开url,这将迫使您重新输入基本的身份验证凭据。
当您想要更改凭证时,请关闭隐身窗口并启动另一个隐身窗口。