Skip to content
Light Dark

Why SilverBullet's rich copy silently fails over plain HTTP

(Updated: ) - 1 min

Drafted with AI assistance from notes I took during real work.

SilverBullet’s “Clipboard: Export Rich Text” command does nothing over plain HTTP because browsers expose navigator.clipboard.write only in a secure context. A LAN origin like http://10.0.0.5:3000 is not one, so the export never runs.

The command sits under Export: Page Or Selection -> Clipboard: Export Rich Text. It builds a Blob and passes it to navigator.clipboard.write([…]). The bundled client guards that call with if(!navigator.clipboard?.write) throw. On an insecure origin, write is undefined, the guard throws, and the UI shows no error.

The quick per-browser fix is Chromium’s chrome://flags/#unsafely-treat-insecure-origin-as-secure, set for that exact origin. No server change. Rich copy then works, confirmed. The flag applies per browser and per origin, and corporate policy may lock it.

A cleaner client-side fix is an SSH local forward: ssh -N -L 3000:127.0.0.1:3000 , then open http://localhost:3000. localhost counts as a secure context, so no flag is needed in any browser. I haven't tested this one end to end.

The server-side route is HTTPS in front of SilverBullet. It has no TLS option itself, only -L and -p. You can use Tailscale Serve with tailnet certs, though the cert name lands in public CT logs, a reverse proxy with a real cert on your own domain, or a local CA the client must trust. More moving parts.

Bonus: the left-side file tree people install plugins for has been built in since 2.11 (Navigate: Tree, Ctrl-O, View -> Tree). The old Treeview plugin is unmaintained.

Antenore Gatta

Antenore Gatta

A proud and busy Hacker, Father and Kyndrol

Support This Work

If this note saves you time, consider supporting the blog.

Most readers scroll past. Less than 3% of readers contribute to keeping independent technical content free and accessible.

Post comment

Markdown is allowed, HTML is not. All comments are moderated.