Self-hosted addons on localhost return 0 streams: harbor_fetch blocks 127.0.0.1 with no fallback (0.9.127)
Harbor version: 0.9.127 (Windows)
What happens
A self-hosted AIOStreams addon installed at http://127.0.0.1:3000/stremio/.../manifest.json always returns 0 streams in the play picker. The addon never receives the stream request (its server log shows only manifest requests), even though the same URL returns 100+ streams from a browser or curl.
Picker console:
[picker] final addon list (5): Cinemeta, Local Files, Torrentio TB, AIOStreams, TorBox
[addons] Torrentio TB: 8 streams
[addons] AIOStreams: 0 streamsCause (from the running app)
fetchOne calls safeFetch → tauriStringFetch → harbor_fetch, which rejects the URL:
invoke('harbor_fetch', {args:{url:'http://127.0.0.1:3000/...'}}) -> "blocked internal target: 127.0.0.1"shouldFallbackToPluginHttp returns false for policy errors (HARBOR_POLICY_ERROR matches "blocked internal target"), so there is no fallback, and the addon is silently dropped. localhost, [::1] and names resolving to 127.0.0.1 are blocked the same way. The same call with allowLocalNetwork: true works (status 200).
PR #1083 explicitly intended to keep loopback working for self-hosted addons ("the unguarded fallback is now used only when the rejected target is the loopback interface ... required so self-hosted addons keep working"), so this looks like a regression.
Expected
Stream and manifest requests to user-installed addons on loopback (and ideally the LAN) should work, e.g. by passing allowLocalNetwork: true (or using safeFetchLocal) for addon URLs the user installed themselves. If it's intentionally blocked, the picker should show an error instead of "0 streams".
Steps
- Run AIOStreams (or any addon) locally on
http://127.0.0.1:<port>. - Install its manifest URL in Harbor.
- Open any title: the addon always reports 0 streams.
Source: harborstremio/harbor