Local API access
Feature Idea
First, I want to lay out the reason I am requesting this feature: I am building my own platform for generating AI Art , for both offline and online options. I am wanting it to be able to trigger workflows and stuff, detect LoRAs, checkpoints, custom nodes, etc. As I progress deeper into development, I learned that ComfyUI doesn't allow requests from outside origins (makes sense, I guess, shouldn't have surprised me lol). Anyways, I did the hacky thing and got it to allow my tool to make requests.
However, my suggestion is an official feature that would allow a user to set ComfyUI to allow requests from other origins, particularly ip:port and then to ensure that it comes from the intended software/tooling, an API key or some sort of ID match.
Existing Solutions
No response
Other
No response
Isn't this it? https://github.com/comfyanonymous/ComfyUI/blob/56fa7dbe380cb5591c5542f8aa51ce2fc26beedf/comfy/cli_args.py#L42
I'm using the installer on Windows and it isn't clear anymore how to access the API, since the entrypoint is ComfyUI.exe