This repository has been archived on 2025-03-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
xerobrowser/packages/CefSharp.Common.113.3.50/src/CefSharp/Enums/CookieSameSite.cs
2023-06-07 22:24:57 +12:00

33 lines
1.3 KiB
C#

// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp.Enums
{
/// <summary>
/// Cookie same site values.
/// </summary>
///<remarks>
/// See https://source.chromium.org/chromium/chromium/src/+/master:net/cookies/cookie_constants.h
///</remarks>
public enum CookieSameSite
{
/// <summary>
/// Unspecified
/// </summary>
Unspecified = 0,
/// <summary>
/// Cookies will be sent in all contexts, i.e sending cross-origin is allowed.
/// None used to be the default value, but recent browser versions made Lax the default value to have reasonably robust defense against some classes of cross-site request forgery (CSRF) attacks.
/// </summary>
NoRestriction,
/// <summary>
/// Cookies are allowed to be sent with top-level navigations and will be sent along with GET request initiated by third party website. This is the default value in modern browsers.
/// </summary>
LaxMode,
/// <summary>
/// Cookies will only be sent in a first-party context and not be sent along with requests initiated by third party websites.
/// </summary>
StrictMode
}
}