From c1a3584103284a328fe263264de28de987dab51c Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 18 Mar 2022 11:00:11 +0100 Subject: [PATCH] utils: clear cookies with secure flag set otherwise firefox complains with a deprecation warning that the secure-flag is not set but SameSite to 'None'. Since we cannot know how firefox will behave once that behaviour is no longer supported, add the secure flag now. Note: ExtJS also clears by setting the cookie with an empty value, there's no browser supported clear api. Signed-off-by: Dominik Csapak --- src/Utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils.js b/src/Utils.js index 6781e44..52cc626 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -306,7 +306,7 @@ utilities: { if (Proxmox.LoggedOut) { return; } - Ext.util.Cookies.clear(Proxmox.Setup.auth_cookie_name); + Ext.util.Cookies.set(Proxmox.Setup.auth_cookie_name, "", new Date(0), null, null, true); window.localStorage.removeItem("ProxmoxUser"); }, -- 2.39.2