共用方式為


CoreWebView2CookieSameSiteKind Enum

Definition

Kind of cookie SameSite status used in the ICoreWebView2Cookie interface. These fields match those as specified in https://developer.mozilla.org/docs/Web/HTTP/Cookies#. Learn more about SameSite cookies here: https://tools.ietf.org/html/draft-west-first-party-cookies-07

public enum CoreWebView2CookieSameSiteKind
type CoreWebView2CookieSameSiteKind = 
Public Enum CoreWebView2CookieSameSiteKind
Inheritance
CoreWebView2CookieSameSiteKind

Fields

Name Value Description
None 0

None SameSite type. No restrictions on cross-site requests.

Lax 1

Lax SameSite type. The cookie will be sent with "same-site" requests, and with "cross-site" top level navigation.

Strict 2

Strict SameSite type. The cookie will only be sent along with "same-site" requests.

Remarks

These fields match those as specified in https://developer.mozilla.org/docs/Web/HTTP/Cookies#. Learn more about SameSite cookies here: https://tools.ietf.org/html/draft-west-first-party-cookies-07

Applies to