fbaiodias / ipfs-chrome-station

:dizzy: Chrome extension that let's you access IPFS urls seamlessly from your local IPFS node, and take a look at its stats
https://chrome.google.com/webstore/detail/ipfs-station/kckhgoigikkadogfdiojcblegfhdnjei
MIT License
55 stars 16 forks source link

Extension broken with 0.4.5-pre1 #14

Closed mateon1 closed 7 years ago

mateon1 commented 7 years ago

In 0.4.5, the format of the /api/v0/swarm/peers endpoint changes, so the extension shows that the daemon is offline regardless of its status.

whoizit commented 7 years ago

not work for me on 0.4.5

elasticdog commented 7 years ago

I recently wiped my laptop and now have a fresh ipfs / ipfs-station (v1.1.0) install on Chrome (v57.0.2987.110 64-bit) running on macOS Sierra and the extension is only showing OFF, although the daemon is running. Any troubleshooting steps I can take to debug why it doesn't pick up that IPFS is on the network?

fbaiodias commented 7 years ago

@elasticdog can you try adding the CORS headers? ipfs config --json API.HTTPHeaders '{"Access-Control-Allow-Origin": ["*"]}'

It might be the same problem as @AlexBeLi is describing at https://github.com/xicombd/ipfs-chrome-station/pull/15.

elasticdog commented 7 years ago

@xicombd that fixed it indeed!

fbaiodias commented 7 years ago

@elasticdog great! I'll add a note to the offline screen about that then :)