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

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


当前回答

退出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浏览器关闭时继续运行后台应用程序”的复选框

其他回答

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

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

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

我使用Chrome 83版本,这就是我是如何做到的。在执行上述步骤之前,请确保要删除的站点的“身份验证详细信息”选项卡已关闭。 首先,进入“设置”>>隐私和安全。

然后点击网站设置选项

然后点击查看权限和跨站点存储的数据选项

搜索您想要删除的认证信息的站点。在本例中,我使用Stack Overflow。

现在点击网站,然后点击清除数据按钮。

现在重新启动浏览器,系统会要求您重新登录。如果要重新启动,可以在地址栏中输入chrome://restart。

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

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