Right now, the domain hhd.dev, or any serving of the ui done by a browser and not pointing to localhost will fail to connect, due to a browser policy named Mixed Content Serving (https to http on a different url).
Replace the browser native fetch function with a http-over-javascript function such as with the library forge:
https://github.com/digitalbazaar/forge
This should be a straight swap, and use the same API.