Q:

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

A:

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.

A:

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

