我在一个使用基本身份验证的网站上工作。使用Chrome我已经登录使用基本的认证。现在我想从浏览器中删除基本的身份验证细节,并尝试不同的登录。
使用Chrome浏览器时,如何清除当前的基本身份验证细节?
我在一个使用基本身份验证的网站上工作。使用Chrome我已经登录使用基本的认证。现在我想从浏览器中删除基本的身份验证细节,并尝试不同的登录。
使用Chrome浏览器时,如何清除当前的基本身份验证细节?
当前回答
按下组合键Ctrl+Shift+Delete 你会看到弹出在chrome 选中上述选项,然后单击“清除数据”,就完成了。
其他回答
你应该能够清除您的凭据从您的浏览器通过“清除浏览数据…”在chrome://设置/高级
对于Chrome 66,我在下面找到了相关选项:
右上…菜单->更多工具->清除浏览数据 点击“高级”页签 勾选“密码”框(取消你不想清除的密码) 按“清除资料”
使用一个新的隐身窗口可能更容易,但当你忘记并想要清除保存的密码时,这个方法不需要重新启动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中还没有办法做到这一点(Chrome 58)
我发现最好的解决方案是在隐身窗口中打开url,这将迫使您重新输入基本的身份验证凭据。
当您想要更改凭证时,请关闭隐身窗口并启动另一个隐身窗口。
你可以打开一个隐身窗口Ctrl+Shift+n每次你做一个测试。隐身窗口将不记得您上次输入的用户名和密码。
要使用这个技巧,请确保关闭所有隐身窗口。所有隐身窗口共享相同的缓存。换句话说,你不能打开多个独立的隐身窗口。如果您登录其中一个窗口并打开另一个窗口,这两个窗口是相关的,您将看到新窗口记住了第一个窗口中的身份验证信息。