Trying to run directly seems viable via localhost and say a container registry (like ghcr). However once deployed cors problems appears so wondering if anyone had that usecase and how they resolved it. Trying to avoid via some proxy middleware, like I may want to download a private wasm file in dockerhub directly into my browser.
Have you tried converting the OCI toolchain to pull from the browser? At the end of the day the registry API is just it should just be HTTP calls, so even with regular JS you should be able to write this relatively quickly
Am I maybe misunderstanding what you're trying to do?
Or are you saying that the registry you are using is putting out CORS headers that don't work -- in that case you need to find a registry that does, my first guess would be Cloudflare having an option like that, and Quay.io looks to have some support.
I don't think DockerHub does or intends to support this out the box, so you'll likely need some kind of proxy sitting somewhere but that doesn't necessarily have to live in the same codebase.
I was thinking of making the entire application a static SPA where user would provide the artifacts they want to load and browser would pull them from their own registries (even if behind their own private networks and whatnot).
so you'll likely need some kind of proxy sitting somewhere but that doesn't necessarily have to live in the same codebase
Ahh, was afraid of that tbh. Seems would likely need a seperate proxy server.
yeah :( So I think that you can get a worker up (which is a bit lighter than a server per-say, though it requires Cloudflare in the stack which is not ideal for some).
It's either that or find a registry that supports what you'd like to do and has the right CORS settings set.
If you knew all the images people might want to access then maybe you could componentize the registry itself (and only control lookups to storage, e.g. S3), but I assume you're trying to allow users to arbitrarily pull in images. In this case you'd need to be able to trigger a cache-to-S3 of arbitrary images that were supplied by the user.
Last updated: Nov 19 2026 at 20:05 UTC