Closes #2060 (cherry picked from commit 675c72f02e7565a937b40c23ec27df6d86f95dc3)pull/2154/head
parent
66c1ac9971
commit
9c83e20b88
@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using Nancy.Cookies;
|
||||
|
||||
namespace Lidarr.Http.Authentication
|
||||
{
|
||||
public class LidarrNancyCookie : NancyCookie
|
||||
{
|
||||
public LidarrNancyCookie(string name, string value)
|
||||
: base(name, value)
|
||||
{
|
||||
}
|
||||
|
||||
public LidarrNancyCookie(string name, string value, DateTime expires)
|
||||
: base(name, value, expires)
|
||||
{
|
||||
}
|
||||
|
||||
public LidarrNancyCookie(string name, string value, bool httpOnly)
|
||||
: base(name, value, httpOnly)
|
||||
{
|
||||
}
|
||||
|
||||
public LidarrNancyCookie(string name, string value, bool httpOnly, bool secure)
|
||||
: base(name, value, httpOnly, secure)
|
||||
{
|
||||
}
|
||||
|
||||
public LidarrNancyCookie(string name, string value, bool httpOnly, bool secure, DateTime? expires)
|
||||
: base(name, value, httpOnly, secure, expires)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return base.ToString() + "; SameSite=Strict";
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue