diff --git a/Oqtane.Server/wwwroot/js/interop.js b/Oqtane.Server/wwwroot/js/interop.js index 725e8ce5..998559c5 100644 --- a/Oqtane.Server/wwwroot/js/interop.js +++ b/Oqtane.Server/wwwroot/js/interop.js @@ -6,19 +6,12 @@ Oqtane.Interop = { d.setTime(d.getTime() + (days * 24 * 60 * 60 * 1000)); var expires = "expires=" + d.toUTCString(); var cookieString = name + "=" + value + ";" + expires + ";path=/"; - - // Add SameSite attribute if (sameSite === "Lax" || sameSite === "Strict" || sameSite === "None") { cookieString += `; SameSite=${sameSite}`; } - - // Add Secure attribute if (secure) { cookieString += "; Secure"; } - - // Note: HttpOnly cannot be set here; it needs to be handled server-side. - document.cookie = cookieString; }, getCookie: function (name) {