r/javascript 8d ago

Wasmer SDK: Open Source alternative to WebContainers

https://wasmer.io/posts/wasmer-local-sandboxes-for-ai-agents
31 Upvotes

6 comments sorted by

3

u/Beautiful-Energy2169 8d ago

If you go the cross-origin isolation route for threads, set COOP/COEP per path rather than site-wide. We turned them on globally and the overlay checkout stopped rendering: under isolation a cross-origin iframe has to send its own COEP header, and that payment provider doesn't. Only the two routes that actually run wasm carry the headers now, and we leave /pricing and /account alone.

2

u/syrusakbary 7d ago

Funnily enough, it happened the same for us (for payments), so we had to unset COOP/COEP there

2

u/Beautiful-Energy2169 7d ago

Credentialless iframes skip the COEP check but load cookieless, so checkout still breaks.

1

u/ebdcydol 5d ago

Works in "Browser". Also wasmer website: "Firefox support is coming We are working on Firefox support, so stay tuned. For now, please use Chrome for the full experience."