ipfs/service-worker-gateway

bug: config page message posting broken

SgtPooki opened this issue · 3 comments

from https://vitalik-eth.ipns.inbrowser.link without SW registered, rendering the redirect page with config iframe:

Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin 'undefined' in a call to 'postMessage'.

image

I think this is due to the _redirects not including the ?origin= in the requested iframe URL. we need to update _redirects to include something like /config:splat /#/config:splat 302

I don't think this is an issue any longer, and we have e2e tests for this. will confirm and close or update with note

This issue no longer seems to occur. closing