When running some localhost HTTP server with HTTPS configured, there might be some problem opening the localhost page on Chrome browser due to security concern.
When checking on the reason, it would tell that the certificate is not trusted.
If you are sure that the localhost is some service you are testing, you can workaround this restriction by changing the Chrome config flag.
chrome://flags/#allow-insecure-localhost
Type above in browser address bar and Enable the flag.
Thereafter relaunch the browser and you should see it works now.
this is not working in crome 119... guide