How to handle Public Writable Gateways in browser extension? #285
Labels
help wanted
Seeking public contribution on this issue
kind/discussion
Topical discussion; usually not changes to codebase
Projects

lidel commentedSep 29, 2017
•
edited
Something I've noticed at discuss.ipfs.io:
Loading the site (which utilizes writable gateway) with ipfs-companion is problematic:
http://ipfessay.stavros.io redirects to https://www.eternum.io/ipns/QmSWnBwMKZ28tcgMFdihD8XS7p6QzdRSGf71cCybaETSsU/
ipfs-companion redirects that to my local gateway http://127.0.0.1:8080/ipns/QmSWnBwMKZ28tcgMFdihD8XS7p6QzdRSGf71cCybaETSsU/
Clicking on publish does nothing, because my local gateway is read-only and rejects HTTP
PUT:Ouch. That is a bad UX.
I see two ways to "fix" it:
(A) Display a popup informing user that request failed because custom gateway is read-only and leave it up to users to either: (A1) decide to make local gateway writable (A2) temporarily disable redirect to custom gateway and use original one
(B) Disable "gateway redirect" for HTTP
PUTandPOSTand always use original gateway for mutable operations.(C) (suggested in #285 (comment)) Warn the user on startup that the gateway is not writable, so some applications may fail, with instructions on how to make it writable.
Any thoughts?
cc @skorokithakis (ipfessay)
References:
The text was updated successfully, but these errors were encountered: