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

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


当前回答

这里有很多很棒的建议,我将给出我认为最有效的一个:

只要在网站上修改密码就可以了。旧的身份验证将变得过时,Chrome将再次请求它。

因为我有一个终端打开,我做了一个简单的脚本更改密码,在两次按键它是递增的。

其他回答

只做

https://newUsername:newPassword@example.com

...重写你的旧凭证。

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

我正在使用LastPass密码管理器,在LastPass删除凭据解决了这个问题。

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

这是一个快速的技巧。 例如,您已经通过user1:password1输入url https://example.com的基本身份验证。要清除它,只需打开新标签,然后:

转到https://any:any@example.com,您的密码将被删除。

Any: Any是任意字符串。