ipfs-chrome-extension icon indicating copy to clipboard operation
ipfs-chrome-extension copied to clipboard

Doesn't work with https gateways

Open jes opened this issue 7 years ago • 5 comments

Currently the extension redirects http://gateway.ipfs.io URLs perfectly fine, but doesn't do anything at all for https://gateway.ipfs.io.

I've looked through the code and can't see where it discriminates between http and https, so I'm guessing this is a Chrome API misfeature.

Worth thinking about how to fix it anyway.

jes avatar May 10 '17 05:05 jes

Just need to add another line with https at https://github.com/dylanPowers/ipfs-chrome-extension/blob/master/ext/main.dart#L337 Should also change https://github.com/dylanPowers/ipfs-chrome-extension/blob/master/ext/main.dart#L276

dylanPowers avatar May 14 '17 20:05 dylanPowers

I'm now using IPFS Station so unlikely I'll fix this, but also worth noting is that https://ipfs.io works as a gateway on its own (i.e. you don't need "gateway." at the start).

And for reference, IPFS Station understands "/ipfs/$hash" on any arbitrary domain, rather than hardcoding the gateway, so it works against any public gateway. #12

jes avatar May 14 '17 20:05 jes

Does IPFS Station have all of the same functionality as this extension?

dylanPowers avatar May 14 '17 20:05 dylanPowers

I have no idea I'm afraid, but I can't think of anything I'd want it to do that it doesn't do.

jes avatar May 14 '17 20:05 jes

I'll have to look into it then. I don't really have any interest in maintaining this and if the IPFS Station extension does everything this does I may deprecate this extension and send everyone that way

dylanPowers avatar May 14 '17 20:05 dylanPowers