2019-03-29 12:26:42 +00:00
|
|
|
|
namespace Umbraco.Core
|
2014-01-16 20:47:13 +11:00
|
|
|
|
{
|
2019-11-05 13:45:42 +01:00
|
|
|
|
public static partial class Constants
|
2017-07-20 11:21:28 +02:00
|
|
|
|
{
|
2014-01-16 20:47:13 +11:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Defines the identifiers for Umbraco system nodes.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static class Web
|
|
|
|
|
|
{
|
2016-02-16 11:17:47 +01:00
|
|
|
|
public const string UmbracoContextDataToken = "umbraco-context";
|
|
|
|
|
|
public const string UmbracoDataToken = "umbraco";
|
|
|
|
|
|
public const string PublishedDocumentRequestDataToken = "umbraco-doc-request";
|
|
|
|
|
|
public const string CustomRouteDataToken = "umbraco-custom-route";
|
|
|
|
|
|
public const string UmbracoRouteDefinitionDataToken = "umbraco-route-def";
|
|
|
|
|
|
|
2014-01-16 20:47:13 +11:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The preview cookie name
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public const string PreviewCookieName = "UMB_PREVIEW";
|
|
|
|
|
|
|
2018-04-06 13:51:54 +10:00
|
|
|
|
public const string InstallerCookieName = "umb_installId";
|
2020-02-13 11:21:20 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The cookie name that is used to store the validation value
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public const string CsrfValidationCookieName = "UMB-XSRF-V";
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The cookie name that is set for angular to use to pass in to the header value for "X-UMB-XSRF-TOKEN"
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public const string AngularCookieName = "UMB-XSRF-TOKEN";
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The header name that angular uses to pass in the token to validate the cookie
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public const string AngularHeadername = "X-UMB-XSRF-TOKEN";
|
2020-02-29 14:26:35 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2020-03-02 17:17:14 +01:00
|
|
|
|
/// The route name of the page shown when Umbraco has no published content.
|
2020-02-29 14:26:35 +01:00
|
|
|
|
/// </summary>
|
2020-03-02 17:17:14 +01:00
|
|
|
|
public const string NoContentRouteName = "umbraco-no-content";
|
2016-03-23 10:58:06 +01:00
|
|
|
|
}
|
2017-07-20 11:21:28 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|