SameSiteMode
Namespace: Wisej.Base
Assembly: Wisej.Framework (4.1.0.0)
Determine if a cookie should be restricted to a first-party or same-site context.
- C#
- VB.NET
public enum SameSiteMode : Enum
Public Enum SameSiteMode As [Enum]
Fields
| Name | Description |
|---|---|
| Lax | Indicates the client should send the cookie with "same-site" requests, and with "cross-site" top-level navigations. |
| None | Indicates the client should disable same-site restrictions. When using this value, the cookie must also have the Secure property set to true. |
| Strict | Indicates the client should only send the cookie with "same-site" requests. |
| Unspecified | No SameSite field will be set, the client should follow its default cookie policy. |
Used By
| Name | Description |
|---|---|
| Cookie.SameSite | Returns or sets the value for the SameSite attribute of the cookie. The default value is Unspecified. |
| CookieCollection.Add | Adds a new cookie to the collection. |