Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
docs: add a explanation of a example's restriction (#2211)
Browse files Browse the repository at this point in the history
This example doesn't work except the case in localhost ( related to #2153)
This is known because of a restriction with WebCrypto (libp2p/js-libp2p-crypto#105)
I add a explanation of a example's restriction to run
  • Loading branch information
hapsody authored and Alan Shaw committed Jul 4, 2019
1 parent b84d0c4 commit 438f70a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/exchange-files-in-browser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ Check that you got connected:

![](img/connect-2.png)

> It only works on localhost environments because of a restriction with WebCrypto where it will not load in a page unless that page is loaded over https, or the page is served from localhost: [libp2p/js-libp2p-crypto#105][js-libp2p-crypto#105]
[js-libp2p-crypto#105]: https://github.com/libp2p/js-libp2p-crypto/issues/105

### 5. Transfer files between all of your nodes!

Now you can add files through the CLI with:
Expand Down

0 comments on commit 438f70a

Please sign in to comment.