localhost blocked on Chrome with "Privacy Error"
<p>Google Chrome is blocking <code>localhost</code>.</p>

<p>I'm using <code>XAMPP</code> with <code>Apache localhost</code>, ports <code>80</code> and <code>443</code>. Google Chrome is up to date.</p>

<p>I'm getting the following error:</p>

<blockquote>
  <p>Your connection is not private</p>
  
  <p>Attackers might be trying to steal your information from localhost (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID</p>
</blockquote>