Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

localhost blocked on Chrome with "Privacy Error"

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

like image 896
wyboo Avatar asked Feb 21 '16 01:02

wyboo


People also ask

How do I enable localhost in Chrome?

1) Open Google Chrome browser. 2) Type chrome://flags/#allow-insecure-localhost in address bar. 3) Click on Enable. 4) Select "Relaunch Now" option displaying at the bottom after making the changes OR Re-open the chrome browser.

Why does Chrome keep giving me a privacy error?

If you see a privacy error message in Chrome, your connection isn't private, and data you share could be stolen. This error usually means Chrome can't verify the website's SSL certificate.


5 Answers

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.

like image 62
Kyle Erickson Avatar answered Oct 21 '22 21:10

Kyle Erickson


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

like image 24
van le Avatar answered Oct 21 '22 21:10

van le


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

like image 44
Andrey Patseiko Avatar answered Oct 21 '22 21:10

Andrey Patseiko


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

like image 35
Atef Rihane Avatar answered Oct 21 '22 22:10

Atef Rihane


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

like image 41
Najathi Avatar answered Oct 21 '22 20:10

Najathi