]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
utils: add inline comment about cookie set-for-clear
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Mar 2022 14:58:53 +0000 (15:58 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Mar 2022 14:58:53 +0000 (15:58 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/Utils.js

index 52cc626f1438b6bf1023e5b109cc5b5ecebe07c1..6a03057a704943539b90ed58dfb3d0b05ecf7883 100644 (file)
@@ -306,6 +306,7 @@ utilities: {
        if (Proxmox.LoggedOut) {
            return;
        }
+       // ExtJS clear is basically the same, but browser may complain if any cookie isn't "secure"
        Ext.util.Cookies.set(Proxmox.Setup.auth_cookie_name, "", new Date(0), null, null, true);
        window.localStorage.removeItem("ProxmoxUser");
     },