Update adds SameSite, Secure and httpOnly SetCookie Settings
This commit is contained in:
parent
f9fbe5adc2
commit
b65f165dcf
|
@ -16,13 +16,13 @@ namespace Oqtane.UI
|
||||||
_jsRuntime = jsRuntime;
|
_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
|
try
|
||||||
{
|
{
|
||||||
_jsRuntime.InvokeVoidAsync(
|
_jsRuntime.InvokeVoidAsync(
|
||||||
"Oqtane.Interop.setCookie",
|
"Oqtane.Interop.setCookie",
|
||||||
name, value, days);
|
name, value, days, secure, httpOnly, sameSite);
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
|
Loading…
Reference in New Issue
Block a user