From b65f165dcfa65844cb5468cb9667c7d92ad3f33f Mon Sep 17 00:00:00 2001 From: Cody Date: Sat, 5 Oct 2024 13:17:31 -0700 Subject: [PATCH] Update adds SameSite, Secure and httpOnly SetCookie Settings --- Oqtane.Client/UI/Interop.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Oqtane.Client/UI/Interop.cs b/Oqtane.Client/UI/Interop.cs index cc379dc6..cdf88133 100644 --- a/Oqtane.Client/UI/Interop.cs +++ b/Oqtane.Client/UI/Interop.cs @@ -16,13 +16,13 @@ namespace Oqtane.UI _jsRuntime = jsRuntime; } - public Task SetCookie(string name, string value, int days) + public Task SetCookie(string name, string value, int days, bool secure, bool httpOnly, string sameSite) { try { _jsRuntime.InvokeVoidAsync( "Oqtane.Interop.setCookie", - name, value, days); + name, value, days, secure, httpOnly, sameSite); return Task.CompletedTask; } catch