From 2b38b1b2c0bee4ba657bb8884f45cb46c2579527 Mon Sep 17 00:00:00 2001 From: hapsody Date: Fri, 5 Jul 2019 00:54:24 +0900 Subject: [PATCH] docs: add a explanation of a example's restriction (#2211) This example doesn't work except the case in localhost ( related to https://github.com/ipfs/js-ipfs/issues/2153) This is known because of a restriction with WebCrypto (https://github.com/libp2p/js-libp2p-crypto/issues/105) I add a explanation of a example's restriction to run --- exchange-files-in-browser/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/exchange-files-in-browser/README.md b/exchange-files-in-browser/README.md index e9a7bb5e..adb86df2 100644 --- a/exchange-files-in-browser/README.md +++ b/exchange-files-in-browser/README.md @@ -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: