Updating .NET Cookie JSON serialization to omit SameSite when null
@@ -183,7 +183,7 @@ public virtual bool IsHttpOnly
/// <summary>
/// Gets the SameSite setting for the cookie.
/// </summary>
- [JsonProperty("sameSite")]
+ [JsonProperty("sameSite", NullValueHandling = NullValueHandling.Ignore)]
public virtual string SameSite
{
get { return this.sameSite; }
