3box-js icon indicating copy to clipboard operation
3box-js copied to clipboard

Fails over HTTP

Open GrandSchtroumpf opened this issue 6 years ago • 2 comments

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):

  • OS: [Windows, MacOS, Debian]
  • Browser [Chrome] (seems to work on Firefox)
  • Version [Version 77.0.3865.75 (Build officiel) (64 bits)]

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.

GrandSchtroumpf avatar Sep 16 '19 15:09 GrandSchtroumpf

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?

oed avatar Sep 17 '19 12:09 oed

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

GrandSchtroumpf avatar Sep 17 '19 12:09 GrandSchtroumpf