45

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

mech
  • 2,566
  • 5
  • 29
  • 37
wyboo
  • 563
  • 1
  • 4
  • 7

7 Answers7

111

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.

Kyle Erickson
  • 1,278
  • 1
  • 10
  • 11
20

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

van le
  • 359
  • 3
  • 10
12

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

Andrey Patseiko
  • 2,682
  • 21
  • 20
4

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

Atef Rihane
  • 173
  • 1
  • 12
3

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

Najathi
  • 1,462
  • 18
  • 21
0

I had the same problem.

Kyle Erickson's answer didn't work for me.
I changed the host name and it was ok. You can also use the ip directly.

Hike Nalbandyan
  • 905
  • 1
  • 9
  • 27
-5

Reset your browser.Remove cache and cookies from your browser.Try now your website. It should work. Still doesn't work let us know in comments below.