Ipfs-webui: IPFS deployment - Please use a browser with webcrypto support

Created on 15 Apr 2018  ·  4Comments  ·  Source: ipfs/ipfs-webui

I deployed my ipfs-go node to AWS instance. Opening the webui in the browser (chrome 65) I a have the following error:

ipfs-webui.0.3.0.js:1 Uncaught Error: Please use a browser with webcrypto support
    at r (ipfs-webui.0.3.0.js:1)
    at sha2256 (ipfs-webui.0.3.0.js:1)
    at Function.r.digest (ipfs-webui.0.3.0.js:1)
    at r (ipfs-webui.0.3.0.js:1)
    at ipfs-webui.0.3.0.js:1
    at serialize (ipfs-webui.0.3.0.js:1)
    at Function.e.exports [as create] (ipfs-webui.0.3.0.js:1)
    at ipfs-webui.0.3.0.js:1
    at t (ipfs-webui.0.3.0.js:1)
    at ipfs-webui.0.3.0.js:1

Looking into it I found that the browser can't load modules like SHA-256 (a webcrypto API module).

The funny thing that we webui is working in Safari (11.1 version). As I understand the specs, both Chrome and Safari should support this feature.

Most helpful comment

But webui sends requests via http and throw errors:
2018-04-30 17 27 43

All 4 comments

Same problem

When using webcrypto, the origin needs to be secure. This means it cannot be served via http unless it's at localhost. If you're loading something external, it needs to be via https.

Secure origins are those that match at least one of the following (scheme, host, port) patterns:

    (https, *, *)
    (wss, *, *)
    (*, localhost, *)
    (*, 127/8, *)
    (*, ::1/128, *)
    (file, *, —)
    (chrome-extension, *, —)

From http://www.chromium.org/Home/chromium-security/security-faq#TOC-Which-origins-are-secure-

@VictorBjelkholm thanks for explaining this 👍

But webui sends requests via http and throw errors:
2018-04-30 17 27 43

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jessicaschilling picture jessicaschilling  ·  5Comments

mxdpeep picture mxdpeep  ·  5Comments

olizilla picture olizilla  ·  4Comments

maooricio picture maooricio  ·  5Comments

daviddias picture daviddias  ·  3Comments