我在一个使用基本身份验证的网站上工作。使用Chrome我已经登录使用基本的认证。现在我想从浏览器中删除基本的身份验证细节,并尝试不同的登录。
使用Chrome浏览器时,如何清除当前的基本身份验证细节?
我在一个使用基本身份验证的网站上工作。使用Chrome我已经登录使用基本的认证。现在我想从浏览器中删除基本的身份验证细节,并尝试不同的登录。
使用Chrome浏览器时,如何清除当前的基本身份验证细节?
当前回答
自从答案公布后,情况发生了很大变化。 现在,您将在URL栏的右侧看到一个小键符号。 点击符号,它将直接带你到保存密码对话框,在那里你可以删除密码。
已在Chrome 49中成功测试
其他回答
在Chrome中还没有办法做到这一点(Chrome 58)
我发现最好的解决方案是在隐身窗口中打开url,这将迫使您重新输入基本的身份验证凭据。
当您想要更改凭证时,请关闭隐身窗口并启动另一个隐身窗口。
Chrome使用与IE相同的Internet选项。
试着打开你的互联网选项并从“可信站点”中删除URL。当您重新启动浏览器并再次访问该URL时,这将重新生成一个401凭据调用。
您可能还需要将其从“内部网站点”中删除。
你也可以通过设置页面chrome://chrome/settings来实现
引擎盖下 高级设置 密码及表格
然后单击“管理保存的密码”链接。
最奇怪的事情,但在我的情况下,我试图访问一个具有基本认证的页面,Chrome甚至没有提示就发送无效凭据。在我注销了我的LastPass插件后,一切都恢复正常了。所以我认为LastPass开始支持基本身份验证,但它没有提供使用什么密码的选项,它看起来只是为匹配的域发送一个随机密码(这在我的情况下是非常有问题的)。
也许能帮到别人。
正如@SalCelli提到的,chrome://restart工作。但是,这会重新启动所有的选项卡。
另一种方法是采用CEGRD建议的隐身模式
但是,如果你不喜欢在Chrome 86 (Mac)上重新启动和隐身使用,我发现@opsb和Mike提供的答案只适用于以下额外步骤。
Enter the wrong username in the url without the resources eg: if the url is http://mywebsite.com/resources/, it will not work if I enter http://wrong@mywebsite.com/resources/, but will work if I enter only http://wrong@mywebsite.com/ it clears the Basic Auth credentials prompt for the credentials again However, entering the valid credentials will not work, as in the background, chrome still send the wrong user as part of the url, even though the url appears right in the address bar When prompted for credentials you would need to Cancel, and click the address bar and reload the page from pressing enter. Now enter the correct password