CookiePolicyOptionsExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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/. |