Closed godfuture closed 2 months ago
There is a bug in firefox https://bugzilla.mozilla.org/show_bug.cgi?id=260839, you better write there.
While this is not fixed you can use url: http://a:b@localhost:8000/
as a workaround.
It's not the best idea...I edited it directly
/usr/local/lib/node_modules/cloudcmd/dist/cloudcmd.js
And replace: this -> document.location.reload() for -> window.location.replace("https://logout@"+location.host+"/cloudcmd") //My custom Nginx Proxy Pass URL
this.logOut=async()=>{const t=n.prefix+"/logout",{prefix:r}=n;await e.Storage.clear(),p(r),e.load.ajax({url:t,error:()=>window.location.replace("https://logout@"+location.host+"/cloudcmd")})
Log Out
Logoff, prompt login
I tried that, it caches requests and shows a couple logins at once, so it doesn’t looks like clean solution.
Anyways you can add this lines to User Menu and you will have a custom logout feature for FireFox.
I don't have that problem. After the change, I checked the operation also in Chrome, Edge, because it could affect, but no, all browsers log out, and then I log in again without problems.
They could look for a definitive solution, compatible with all browsers.
I tried that, it caches requests and shows a couple logins at once, so it doesn’t looks like clean solution.
Now I understand, the loop occurs in the same tab.
cloudcmd -v
): 17.4.0node -v
: 20.12.2uname -a
on Linux): docker container (f9695130498b605c10d76db425e5f4eb07ddb22fe242024e495475c6c71d8fe2)Clicking on "logout" does work on Microsoft Edge, but when doing the same thing with firefox, no logout happens, but simply a refresh of website.