BitBoxSwiss / bitbox-bridge

A bridge that connects web wallets like MyEtherWallet to BitBox02
Apache License 2.0
20 stars 14 forks source link

adalite.to on Safari can't find BitBox. Chrome works without problems #39

Open TheRockaXXX opened 2 years ago

TheRockaXXX commented 2 years ago

On Mac OS Big Sur i can´t use adalite.to with Safari. The site can't find the device. http://127.0.0.1:8178/ shows, that bitbox bridge is running. Electrum and Sparrow can use the bridge without any problems. Chrome works perfectly, but i think, it doesn't use the bridge directly. So, is there a common issue with Safari and BitBox Bridge?

benma commented 2 years ago

Electrum and Sparrow do not use the bridge.

Is the bridge running? You can check by visiting http://localhost:8178/.

What is the contents of your /etc/hosts file?

Does Firefox work?

TheRockaXXX commented 2 years ago

/etc/hosts:

`##

Host Database

#

localhost is used to configure the loopback interface

when the system is booting. Do not change this entry.

127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost ` I don´t use Firefox, but will try it later.

http://localhost:8178/ shows:

`BitBoxBridge v1.5.0 GET /api/info GET /api/v1/devices GET/WS /api/v1/socket/:socket

api version = 1.5.0`

thisconnect commented 2 years ago

Safari blocks fetching dada from http://localhost:8178/api/v1/devices.

Screen Shot 2021-12-09 at 4 30 19 PM

benma commented 2 years ago

@thisconnect would 127.0.0.1 work instead?

thisconnect commented 2 years ago

@benma unfortunately not

fetch('http://127.0.0.1:8178/api/v1/devices').then(body => body.json()).then(console.log).catch(console.error)

Screen Shot 2021-12-09 at 4 53 14 PM

NickeZ commented 2 years ago

@benma @thisconnect I think this is due to Safari breaking the spec, not allowing localhost content over http for a https website. https://bugs.webkit.org/show_bug.cgi?id=171934

benma commented 2 years ago

Interesting! Seems like the issue won't be resolved anytime soon either :/