ipfs/helia-http-gateway

subdomain gateways

Closed this issue · 0 comments

While working on minimal http gateway integration with tiros, a weird quirk of browsers shows when accessing IPNS links. e.g: http://localhost:8080/ipns/probelab.io

probelab.io

The requests are relative to /ipns/<dns-link>/asset but the browser considers it /asset so a redirect has to be made to the right asset link. However, it's up to the browser to follow the redirect or just display asset not found (broken image link). This problem is solved in subdomain gateways as the url transforms into a subdomain and that makes everything relative to the host load correctly.

This issue will focus on loading content using subdomain gateways.