Stream: jco

Topic: Running wasm artifacts stored in oci directly in web browser


view this post on Zulip Souyama (Nov 10 2026 at 14:54):

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.

view this post on Zulip Victor Adossi (Nov 11 2026 at 03:47):

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

view this post on Zulip Victor Adossi (Nov 11 2026 at 03:48):

Am I maybe misunderstanding what you're trying to do?

view this post on Zulip Victor Adossi (Nov 11 2026 at 03:50):

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.

view this post on Zulip Victor Adossi (Nov 11 2026 at 03:51):

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.

view this post on Zulip Souyama (Nov 11 2026 at 05:08):

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.

view this post on Zulip Victor Adossi (Nov 11 2026 at 05:09):

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).

view this post on Zulip Victor Adossi (Nov 11 2026 at 05:13):

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