-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wss:// gets redirected to IPNS #469
Comments
Just tested it, the results look weird. i'll retest it on a clean firefox profile again.
|
On the nightly indeed everything seems to work...
|
I was able to replicate it yesterday with Firefox 59, but only when dnslink was enabled. Anyway, some plausible explanations:
I agree with general suggestion. To be on the safe side the extension should explicitly skip requests related to WSS (HTTP2IPFS gateways do not support WSS anyway). That way we will be immune to ephemeral bugs caused by browsers including/excluding websocket handshake from FYSA right now, both Chrome and Firefox (nightly and stable) include it in mentioned scope and pass it to both hooks:
To address this, I created a PR: Skip HTTP GET of websocket handshake #472 |
@mkg20001 should be fixed in latest beta (v2.2.2.9120) |
When accessing https://libp2p-nodetrust.tk/demo it gets properly redirected to http://127.0.0.1:8080/ipns/libp2p-nodetrust.tk/demo/
When launching the demo it connects to wss://libp2p-nodetrust.tk which should not be redirected, yet it gets redirected to http://127.0.0.1:8080/ipns/libp2p-nodetrust.tk/demo/ which breaks the demo
Fix: Detect and don't modify websocket requests
The text was updated successfully, but these errors were encountered: