How to clear basic authentication details in chrom

2019-01-05 07:45发布

I'm working on a site that uses basic authentication. Using Chrome I've logged in using the basic auth. I now want to remove the basic authentication details from the browser and try a different login.

How do you clear the current basic authentication details when using Chrome?

17条回答
倾城 Initia
2楼-- · 2019-01-05 08:07

In Chrome, on the right-hand side of the URL bar when you are at a password protected URL, you should see a small key symbol. Click the symbol and it will take you directly to the Password Management area where you can remove the entry. That will ensure you receive future prompts or have an opportunity to enter a new password and save it.

If you do not see the key symbol, that same Password Management area can be accessed by going to Chrome -> Settings -> Passwords and forms -> Manage Passwords. Or more simply, this URL – chrome://settings/passwords.

查看更多
Rolldiameter
3楼-- · 2019-01-05 08:08

Things changed a lot since the answer was posted. Now you will see a small key symbol on the right hand side of the URL bar.
Click the symbol and it will take you directly to the saved password dialog where you can remove the password.

Successfully tested in Chrome 49

查看更多
等我变得足够好
4楼-- · 2019-01-05 08:09

You can also do it via the settings page, chrome://chrome/settings

  • Under The Hood
  • Advanced Settings
  • Passwords and Forms

Then click the link Manage saved passwords.

查看更多
冷血范
5楼-- · 2019-01-05 08:11
  1. CTL+Shit+Delete
  2. You will see popup in chrome enter image description here

  3. Check the above options and click clear data and you are done.

查看更多
smile是对你的礼貌
6楼-- · 2019-01-05 08:12
function logout(url){
    var str = url.replace("http://", "http://" + new Date().getTime() + "@");
    var xmlhttp;
    if (window.XMLHttpRequest) xmlhttp=new XMLHttpRequest();
    else xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.onreadystatechange=function()
    {
        if (xmlhttp.readyState==4) location.reload();
    }
    xmlhttp.open("GET",str,true);
    xmlhttp.setRequestHeader("Authorization","Basic YXNkc2E6")
    xmlhttp.send();
    return false;
}
查看更多
地球回转人心会变
7楼-- · 2019-01-05 08:13

There is no way to do this in Chrome as yet (Chrome 58)

I have found the best solution is to open the url in an Incognito window, which will force you to re-enter the basic authentication credentials.

When you want to change the credentials, close the Incognito window and launch another Incognito window.

查看更多
登录 后发表回答