3box / 3box-js

3Box JavaScript SDK: User identities, storage, messaging
MIT License
207 stars 65 forks source link

Fails over HTTP #596

Open GrandSchtroumpf opened 5 years ago

GrandSchtroumpf commented 5 years ago

Describe the bug When running 3box over HTTP we cannot login. Here is the error Cannot read property 'importKey' of undefined

To Reproduce Steps to reproduce the behavior:

  1. Go to http://remix.ethereum.org
  2. Click on "Plugin Manager" (plug icon on the right)
  3. Click on "Connect with MetaMask"
  4. See error in console

Expected behavior Login should works on HTTP

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context When trying to build locally (localhost) a plugin on Remix you have to run Remix IDE over HTTP (as browser doesn't support postMessage communication between http and https). So 3box plugin is unusable by other plugin during development.

oed commented 5 years ago

Thanks for reporting! The reason this happens I think is because the connection to our ipfs node needs to happen over https for security issues. Maybe there is some setting in chrome for development mode that can be used?

GrandSchtroumpf commented 5 years ago

Ok, thanks I'll take a look at it.