Skip to content
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

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

Open
TheRockaXXX opened this issue Dec 9, 2021 · 7 comments

Comments

@TheRockaXXX
Copy link

TheRockaXXX commented Dec 9, 2021

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
Copy link
Contributor

benma commented Dec 9, 2021

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
Copy link
Author

/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
Copy link
Contributor

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

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

@benma
Copy link
Contributor

benma commented Dec 9, 2021

@thisconnect would 127.0.0.1 work instead?

@thisconnect
Copy link
Contributor

@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
Copy link
Collaborator

NickeZ commented Apr 26, 2022

@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
Copy link
Contributor

benma commented Apr 26, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants