orbitdb-archive / orbit-web

Orbit Web Application
https://orbit.chat
MIT License
265 stars 71 forks source link

Unnecessary redirect to HTTPS breaks local IPFS load #155

Open lidel opened 3 years ago

lidel commented 3 years ago

Opening http://localhost:8080/ipns/orbit.chat/ (local gateway provided by go-ipfs) triggers unnecessary redirect to HTTPS:

https://github.com/orbitdb/orbit-web/blob/653c0e867719b0a26946d3bdee19db20c222c632/src/index.js#L17

which breaks load from local gateway and in Brave (https://github.com/brave/brave-browser/issues/13853).

gimzmoe commented 3 years ago

trying to brows the server externally forces to https and fails Error code: SSL_ERROR_RX_RECORD_TOO_LONG is this supposed to happen?

slrslr commented 2 years ago

Same issue here. I open https://orbit.chat/ in Firefox 93.0 i am redirected to https://orbit.chat.ipns.localhost:8080/ (I am using IPFS companion 0.9.1/dc2715a) page shows error:

Secure Connection Failed An error occurred during a connection to orbit.chat.ipns.localhost:8080. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG

pmwoodward3 commented 1 year ago

Don't want to bump an old ticket, but i'm still seeing this on the latest version of IPFS using the latest version of Firefox.