ipfs / service-worker-gateway

IPFS Gateway implemented in Service Worker
https://inbrowser.link
Other
27 stars 8 forks source link

bug: iframe loading on localhost:3000 #148

Closed SgtPooki closed 6 months ago

SgtPooki commented 7 months ago

https://github.com/ipfs-shipyard/helia-service-worker-gateway/blob/92679927312c5f2e8363dc7838b50450e188b8a4/src/redirectPage.tsx#L14

testing http://localhost:3000/ipfs/bafkqablimvwgy3y results in redirect page trying to load config at url: src="http://http://localhost:3000/ipfs/bafkqablimvwgy3y:3000#/ipfs-sw-config@origin=http%3A%2F%2Flocalhost%3A3000"

replacing ${window.location.protocol}//${parentDomain} with ${parentDomain} correctly renders the iframe.. but then results in a bunch of nested iframes:

image
SgtPooki commented 7 months ago

I believe this is resolved.. will double check

SgtPooki commented 6 months ago

duplicate iframes are no longer being rendered, but non-subdomain origin is attempting to render iframe:

image