mut-ex / gligen-gui

An intuitive GUI for GLIGEN that uses ComfyUI in the backend
Other
2.02k stars 191 forks source link

support non-localhost http URL #28

Open cocktailpeanut opened 9 months ago

cocktailpeanut commented 9 months ago

When running this locally behind a local proxy (0.0.0.0 and exposed as URLs like 192.168.1.144), the ui fails to run because it uses webcrypto to generate random numbers and IDs https://stackoverflow.com/a/46671627

Since these features are only used for generating random numbers and not security related features, there's no reason to limit this to run behind localhost or https URLs.

With this PR the app runs properly behind all URLs.