localhost blocked on Chrome with "Privacy Error"

46,752

Solution 1

Try this:

In Chrome, put in chrome://flags/#allow-insecure-localhost in the address bar.

Enable the option that says "Allow invalid certificates for resources loaded from localhost".

Restart Chrome, and it should allow the site.

Solution 2

From Chrome version 63, it will redirect all .dev extension to domain https So try another extension to another, ex .test, .local... You can refer here: https://docs.serverpress.com/article/234-your-connection-is-not-private-google-chrome

Solution 3

Try typing in your are blocked page thisisunsafe. Simple type this word on keyboard. I found solution from this https://medium.com/@dblazeski/chrome-bypass-net-err-cert-invalid-for-development-daefae43eb12

Solution 4

It worked for me just by changing " .dev" to ".local" I'm using windows 10

Solution 5

your connection is not private for virtual host in XAMPP

I've faced the same problem, Now It has been solved it.

don't use '.dev' for your local domains - the new chrome (version 63) redirects all .dev -Domains to 'https://name.dev'

Try to rename your local domains to something like '.test' and 'phpmyadmin.test' or whatever

Share:
46,752
wyboo
Author by

wyboo

Updated on July 09, 2022

Comments

  • wyboo
    wyboo almost 2 years

    Google Chrome is blocking localhost.

    I'm using XAMPP with Apache localhost, ports 80 and 443. Google Chrome is up to date.

    I'm getting the following error:

    Your connection is not private

    Attackers might be trying to steal your information from localhost (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID

  • Andrew
    Andrew about 7 years
    Would there be any downsides to this? Any actual issues with allowing insecure from localhost?
  • Kyle Erickson
    Kyle Erickson almost 7 years
    I can't see why, seeing as localhost is just your local machine.
  • DrLightman
    DrLightman over 6 years
    Not working for me on Chrome 62.0.3202.94, even if the flag is there it seems to not have any effect.
  • Tom Shaw
    Tom Shaw over 6 years
    Worked for me after changing hostnames from *.dev to *.local. Tested on Apache Windows 10.
  • black_yurizan
    black_yurizan over 6 years
    @TomShaw Can confirm, I changed my example.dev to example.io and it started to work
  • Rumit Patel
    Rumit Patel over 6 years
    should be in comment.
  • Hammad Khan
    Hammad Khan about 6 years
    This exactly solved my problem. Was using .dev domain, changed that to .git and it worked flawlessly.
  • Nathan
    Nathan about 6 years
    This was my issue as well, using the .dev domain, changed it to .local and worked fine
  • Christia
    Christia almost 6 years
    This solution didn't work for me but the solution below about not using .dev worked! FYI. Try both.