我在一个使用基本身份验证的网站上工作。使用Chrome我已经登录使用基本的认证。现在我想从浏览器中删除基本的身份验证细节,并尝试不同的登录。

使用Chrome浏览器时,如何清除当前的基本身份验证细节?


当前回答

在我的情况下(Win Chrome v100),它在使用https://@domain.com删除凭据时起作用。在开发工具中验证并查询document.URL。

其他回答

按下组合键Ctrl+Shift+Delete 你会看到弹出在chrome 选中上述选项,然后单击“清除数据”,就完成了。

你应该能够清除您的凭据从您的浏览器通过“清除浏览数据…”在chrome://设置/高级

你可以打开一个隐身窗口Ctrl+Shift+n每次你做一个测试。隐身窗口将不记得您上次输入的用户名和密码。

要使用这个技巧,请确保关闭所有隐身窗口。所有隐身窗口共享相同的缓存。换句话说,你不能打开多个独立的隐身窗口。如果您登录其中一个窗口并打开另一个窗口,这两个窗口是相关的,您将看到新窗口记住了第一个窗口中的身份验证信息。

正如@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

可能是老帖子了,但想过添加答案来帮助别人。

我在高级ReST客户端应用程序中也遇到了同样的问题,我无法从Chrome和应用程序中清除基本的身份验证。它只是停止要求凭据!

然而,我设法使它通过重新启动Chrome使用关于谷歌Chrome ->重新启动。

一旦Chrome重新启动,当我访问ReST服务,它会要求用户名和密码使用基本身份验证弹出。

希望这能有所帮助!