CookiePolicyOptionsExtensions Class

Definition

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

public static class CookiePolicyOptionsExtensions
type CookiePolicyOptionsExtensions = class
Public Module CookiePolicyOptionsExtensions
Inheritance
System.Object
CookiePolicyOptionsExtensions

Methods

DisallowsSameSiteNone(String)

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

HandleSameSiteCookieCompatibility(CookiePolicyOptions)

Handles SameSite cookie issue according to the https://docs.microsoft.com/en-us/aspnet/core/security/samesite?view=aspnetcore-3.1. 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, Func<String,Boolean>)

Handles SameSite cookie issue according to the docs: https://docs.microsoft.com/en-us/aspnet/core/security/samesite?view=aspnetcore-3.1 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