ipfs-companion icon indicating copy to clipboard operation
ipfs-companion copied to clipboard

originswag.eth.link and other dweb stores break on localhost

Open lidel opened this issue 5 years ago • 1 comments

I was able to reproduce the issue reported by @andyschwab, it is present in both Firefox and Chromium.

  • Opening https://originswag.eth.link with Companion enabled ends up on https://originswag.eth.link.ipns.localhost:8080/#/
  • http://originswag.eth.link.ipns.localhost:8080/ is opened, subresources are fetched but then suddenly URL gets replaced with HTTPS one: https://originswag.eth.link.ipns.localhost:8080/
  • this is because http://originswag.eth.link.ipns.localhost:8080/dist/vendors~app.0f591475.bundle.js has this snippet: window.location.href=window.location.href.replace("http:","https:")
  • I believe http: should be allowed, when store is loaded from http://*.localhost

tl;dr not a problem with IPFS Companion, the store software needs a fix to allow loading from local IPFS gateway at http://*.localhost:*/

lidel avatar May 01 '20 21:05 lidel

Reached out to Origin to alert them to the issue.

andyschwab avatar May 04 '20 14:05 andyschwab