diff options
| author | Adam Soltys <[email protected]> | 2026-12-03 21:37:06 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-12-03 21:37:06 -0700 |
| commit | 9cb28c714529130a9abf01db489335f764cc853a (patch) | |
| tree | cf61e9d21f4a9f215b6e69f6a894fea870b1f172 /feed/note-page.js | |
| parent | ac1999d50b83bd7a8d5068abebcb0e1756a63eeb (diff) | |
| download | coinosv3-server-9cb28c714529130a9abf01db489335f764cc853a.tar.gz coinosv3-server-9cb28c714529130a9abf01db489335f764cc853a.zip | |
names: /lnurlp-fetch fetches a Lightning address's pay parameters for a browser that can't.
"another thing is coinos cannot reach speed.app wallet, not sure why" (Shark, relayed by Adam 2026-12-04). speed.app answers /.well-known/lnurlp/<name> with a 301 to appapi.tryspeed.com that carries no Access-Control-Allow-Origin, and a browser won't follow a cross-origin redirect without it: from v3.coinos.io the fetch fails ("Failed to fetch"), though the target itself allows any origin. GET /lnurlp-fetch?url=https://<host>/.well-known/lnurlp/<name> fetches it server-side with the link previews' guards (public hosts only, rechecked after every redirect, capped body), https only, that one path only, and returns the pay parameters (200), the host's own error (404) or 502. Rate-limited, cached 5 minutes (30 s for failures). New lnurl-proxy.test.js passes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VMan6WoqaQDYdpWkatPCar
Diffstat (limited to 'feed/note-page.js')
0 files changed, 0 insertions, 0 deletions
