Yes, but browsers moan if you connect to a website without https, no matter if it's on localhost or an onion service.
Tor Browser handles this, it treats `.onion` as a secure context.
Tor Browser handles this, it treats `.onion` as a secure context.