apachexampplocalhost

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


Solution

  • 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.