Skip to main content
Version: 3.5

SameSiteMode

Namespace: Wisej.Base

Assembly: Wisej.Framework (3.5.0.0)

Determine if a cookie should be restricted to a first-party or same-site context.

public enum SameSiteMode : Enum

Fields​

NameDescription
LaxIndicates the client should send the cookie with "same-site" requests, and with "cross-site" top-level navigations.
NoneIndicates the client should disable same-site restrictions. When using this value, the cookie must also have the Secure property set to true.
StrictIndicates the client should only send the cookie with "same-site" requests.
UnspecifiedNo SameSite field will be set, the client should follow its default cookie policy.

Used By​

NameDescription
Cookie.SameSiteReturns or sets the value for the SameSite attribute of the cookie. The default value is Unspecified.