localhost blocked on Chrome with “Privacy Error”

醉酒当歌 提交于 2019-12-18 04:38:15

问题


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


回答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.




回答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




回答3:


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.




回答4:


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




回答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




回答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.



来源:https://stackoverflow.com/questions/35531347/localhost-blocked-on-chrome-with-privacy-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!