57

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,775
  • 5
  • 30
  • 38
wyboo
  • 683
  • 1
  • 5
  • 7

7 Answers7

138

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,558
  • 1
  • 11
  • 14
21

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
  • 403
  • 4
  • 11
17

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
  • 3,687
  • 1
  • 25
  • 24
4

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

Atef Rihane
  • 183
  • 2
  • 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
  • 2,529
  • 24
  • 23
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
  • 994
  • 1
  • 11
  • 28
-6

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.