Join Nostr
2026-11-28 23:20:46 UTC
in reply to

Karsten Schmidt on Nostr: Any HTTP request done by an extension will include a Origin: ...

Any HTTP request done by an extension will include a Origin: moz-extension://<UUID> header where the UUID is internally assigned by FF to each extension. If the server doesn't include an Access-Control-Allow-Origin response header with that same value, then even if successfully processed, FF will fail the response on the extension side. Since those internal UUIDs aren't stable between versions/users, you can't whitelist them on the server side (well, maybe if you've got a tiny install base) and instead use some form of authentication or API token mechanism. I was doing the latter already anyhow, so just needed to add the missing response header with the value copied from the request's Origin header. Otherwise the extension can never read the response...