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

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


当前回答

我用的是Chrome 75。我发现重新启动Chrome不起作用。但是重新启动Chrome浏览器并打开开发者工具就可以了。我不知道为什么会这样。

其他回答

在Chrome浏览器中,在URL栏的右侧,当你在一个受密码保护的URL时,你应该看到一个小的键符号。单击该符号,它将直接带您到密码管理区域,在那里您可以删除该条目。这将确保您在将来收到提示,或者有机会输入新密码并保存它。

如果你没有看到关键符号,同样的密码管理区域可以访问到Chrome ->设置->密码和表单->管理密码。或者更简单地说,这个URL - chrome://settings/passwords。

Chrome使用与IE相同的Internet选项。

试着打开你的互联网选项并从“可信站点”中删除URL。当您重新启动浏览器并再次访问该URL时,这将重新生成一个401凭据调用。

您可能还需要将其从“内部网站点”中删除。

对于Chrome 66,我在下面找到了相关选项:

右上…菜单->更多工具->清除浏览数据 点击“高级”页签 勾选“密码”框(取消你不想清除的密码) 按“清除资料”

使用一个新的隐身窗口可能更容易,但当你忘记并想要清除保存的密码时,这个方法不需要重新启动Chrome(这也有效)

对于Windows 10:对我有用的是在凭据管理器中清除Windows凭据中的凭据。

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