I know that my SSL certificate for localhost is not valid. I know my connection isn't actually secure. I don't care! I'm talking to my own machine.
How can I tell Chrome to ignore certificate errors on localhost?
There is now a flag for this at chrome://flags/#allow-insecure-localhost
.
We've used this for a while, but have since moved to using a proper certificate that is issued to a subdomain we own. That subdomain has an A
record that points to 127.0.0.1
and a AAAA
that points to ::1
.
However, Chrome seems to have an issue with that DNS setup and randomly throws DNS related errors. So you'd want to add the mapping manually to the hosts
file as well.
That's what we do right now and it works great.
localhost.example.com
then and point that record to 127.0.0.1
. Works everywhere.
Nov 25, 2023 at 9:46
localhost
. You can tell Chrome to ignore all certificate errors but that would be extremely unwise.