This is a followup question to Google Chrome redirecting localhost to https.
Does anyone know, how to permanently exclude localhost from HSTS list in Go
You can follow the solution here.
When Google Chrome keeps redirecting your localhost Url from http://localhost to https://localhost, do the following: