This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
XMLHttpRequest cannot be used when running ipfs in a service worker #1477
Labels
exp/novice
Someone with a little familiarity can pick up
kind/bug
A bug in existing code (including security flaws)
P0
Critical: Tackled by core team ASAP
self.XMLHttpRequest is not a constructor
Type: Bug
Severity: Critical
Description:
Service workers does not support
XMLHttpRequest
. This way, a service worker cannot run this version ofjs-ipfs
. Can theXMLHttpRequest
be changed to usefetch
instead?js-ipfs/src/core/runtime/preload-browser.js
Line 12 in 649b755
Steps to reproduce the error:
Instantiate an IPFS node inside a service worker
The text was updated successfully, but these errors were encountered: