ipfs/service-worker-gateway

bug: iframe loading on localhost:3000

SgtPooki opened this issue · 2 comments

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

I believe this is resolved.. will double check

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

image