hhd-dev / hhd-ui

The main UI for the Handheld Daemon.
GNU General Public License v3.0
7 stars 4 forks source link

Allow the ui to connect over the network #3

Open antheas opened 7 months ago

antheas commented 7 months ago

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.