CookiePolicyOptionsExtensions Class

Definition

Extension class containing cookie policies (work around for same site).

public static class CookiePolicyOptionsExtensions
type CookiePolicyOptionsExtensions = class
Public Module CookiePolicyOptionsExtensions
Inheritance
CookiePolicyOptionsExtensions

Methods

DisallowsSameSiteNone(String)

Checks if the specified user agent supports "SameSite=None" cookies.

HandleSameSiteCookieCompatibility(CookiePolicyOptions, Func<String,Boolean>)

Handles SameSite cookies according to the ASP.NET Core documentation at https://learn.microsoft.com/aspnet/core/security/samesite. The default list of user agents that disallow "SameSite=None", was taken from https://devblogs.microsoft.com/aspnet/upcoming-samesite-cookie-changes-in-asp-net-and-asp-net-core/.

HandleSameSiteCookieCompatibility(CookiePolicyOptions)

Handles SameSite cookies according to the ASP.NET Core documentation at https://learn.microsoft.com/aspnet/core/security/samesite. The default list of user agents that disallow "SameSite=None", was taken from https://devblogs.microsoft.com/aspnet/upcoming-samesite-cookie-changes-in-asp-net-and-asp-net-core/.

Applies to