How can I disable security checks for localhost?
Sophia Terry
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?
1 Answer
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.
2