ipfs / ipfs-companion

Browser extension that simplifies access to IPFS resources on the web
https://docs.ipfs.tech/install/ipfs-companion/
Creative Commons Zero v1.0 Universal
2.06k stars 325 forks source link

HTTPS Everywhere in EASE mode blocks redirect to http://*.localhost #855

Open lidel opened 4 years ago

lidel commented 4 years ago

There is an Encrypt All Sites Eligible (EASE) opt-in mode in HTTPS Everywhere which protects users against downgrade from https:// to http:// even when HSTS header is not present.

Problem

This is a minor inconvenience for DNSLink redirects to *.localhost subdomains introduced in #853, as those get blocked if the feature is enabled:

HTTPS-Everywhere-EASE-mode-2020-03-27--12-34-08

HTTPS-Everywhere-2020-03-27--12-33-20

Solution

Mikaela commented 4 years ago

This appears to also affect Firefox's new HTTPS-only mode (dom.security.https_only_mode;true), I was hoping that Firefox 76 might also have fixed the aforementioned Consider hardcoding localhost names to the loopback address, but that doesn't seem to be the case.

thibaultmol commented 3 years ago

Any plans on fixing this? It's still causing issues. (or a workaround)

Mikaela commented 3 years ago

I think this may be fixed or at least Firefox's own HTTPS-only mode I mentioned in my last comment doesn't seem to cause issues with IPFS browsing anymore. Firefox's Bug 1220810 (let-localhost-be-localhost) has also been closed 4 months ago.

Links I tested include http://ipfs.io.ipns.localhost:8080/ ("IPFS powers the Distributed Web" and http://http.badssl.com/ ("HTTPS-only mode warning: Protected connection is not available" (translated from Finnish)).