ipfs / ipfs/ipfs-webui

bug: webui not loading in firefox with cookies and localStorage disabled

Open
#2,190 13 comments 0 reactions 0 assignees View on GitHub
effort/days exp/expert help wanted kind/enhancement kind/support need/analysis P3 status/deferred topic/infra
Dominant language
JavaScript
Stars
1.6k
Forks
534
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
I try to open webui and browser show me nothing.

My browser Firefox in private mod. All cookies disabled in settings. It is block access to local storage.

In console i see errors:

First error:
```
17:08:30.946 Uncaught DOMException: The operation is insecure.
value i18nextLocalStorageBackend.js:50
e i18nextLocalStorageBackend.js:60
value i18nextChainedBackend.js:19
value i18nextChainedBackend.js:49
n i18next.js:1925
value i18next.js:2361
61455 i18n.js:19
Webpack 4
__webpack_require__



main.20056d59.js:2
value i18nextLocalStorageBackend.js:50
e i18nextLocalStorageBackend.js:60
value i18nextChainedBackend.js:19
forEach self-hosted:203
value i18nextChainedBackend.js:49
n i18next.js:1925
value i18next.js:2361
61455 i18n.js:19
Webpack 4
__webpack_require__
<анонимный>
<анонимный>
<анонимный>
```

Error happen here in code (i18nextLocalStorageBackend.js:50):
```javascript
function getDefaults() {
return {
prefix: 'i18next_res_',
expirationTime: 7 * 24 * 60 * 60 * 1000,
defaultVersion: undefined,
versions: {},
store: typeof window !== 'undefined' ? window.localStorage : null /* error on this line */
};
}
```

Second error:
```
17:08:30.988 Uncaught (in promise) DOMException: The operation is insecure.
n money-clip.m.js:32
2 main.20056d59.js:2
```

Error happen here in code (money-clip.m.js:32):
```javascript
function createStore(dbName, storeName) {
const dbp = idbReady().then(() => {
const request = indexedDB.open(dbName); /* error on this line */
request.onupgradeneeded = () => request.result.createObjectStore(storeName);
return promisifyRequest(request);
});
return (txMode, callback) => dbp.then((db) => callback(db.transaction(storeName, txMode).objectStore(storeName)));
}
```

**To Reproduce**
Steps to reproduce the behavior:
1. Disable all cookies in Firefox
2. Open webui in private mod

**Expected behavior**
Web UI is shown

**Desktop (please complete the following information):**
- OS: Windows 7
- Browser Firefox
- Version 115.5.0esr (64-разрядный)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.