A minimal ComfyUI custom node plugin that adds a /remote/view endpoint serving output images with proper HTTP/1.1 headers.
ComfyUI's built-in /view endpoint returns raw image bytes with no HTTP headers (HTTP/0.9). Modern browsers and Node.js reject these responses outside of port 80. This plugin adds a drop-in replacement endpoint that wraps the same image data in a proper HTTP/1.1 response.
- Copy this directory into your ComfyUI
custom_nodesfolder:
cp -r comfyui-image-serve /path/to/ComfyUI/custom_nodes/Or clone directly:
cd /path/to/ComfyUI/custom_nodes
git clone git@gist.github.com:a77904ec4ba2eabf66a956993f7a64c4.git comfyui-image-serve- Restart ComfyUI.
Replace calls to /view with /remote/view — the query parameters are identical:
http://<comfyui-host>:<port>/remote/view?filename=image.png&subfolder=&type=output
Supported type values: output, input, temp.
ComfyUI's /view endpoint predates HTTP/1.0 standards enforcement in browsers. The response is raw bytes — no status line, no headers. Chromium rejects this for any connection not on port 80. This plugin uses aiohttp (ComfyUI's own web server) to serve the same file with a correct HTTP/1.1 200 OK response and Content-Type: image/png.