File: ForwardedHeadersDefaults.cs
Web Access
Project: src\src\Middleware\HttpOverrides\src\Microsoft.AspNetCore.HttpOverrides.csproj (Microsoft.AspNetCore.HttpOverrides)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.HttpOverrides;
 
/// <summary>
/// Default values related to <see cref="ForwardedHeadersMiddleware"/> middleware
/// </summary>
/// <seealso cref="Microsoft.AspNetCore.Builder.ForwardedHeadersOptions"/>
public static class ForwardedHeadersDefaults
{
    /// <summary>
    /// X-Forwarded-For
    /// </summary>
    public static string XForwardedForHeaderName { get; } = "X-Forwarded-For";
 
    /// <summary>
    /// X-Forwarded-Host
    /// </summary>
    public static string XForwardedHostHeaderName { get; } = "X-Forwarded-Host";
 
    /// <summary>
    /// X-Forwarded-Proto
    /// </summary>
    public static string XForwardedProtoHeaderName { get; } = "X-Forwarded-Proto";
 
    /// <summary>
    /// X-Forwarded-Prefix
    /// </summary>
    public static string XForwardedPrefixHeaderName { get; } = "X-Forwarded-Prefix";
 
    /// <summary>
    /// X-Original-For
    /// </summary>
    public static string XOriginalForHeaderName { get; } = "X-Original-For";
 
    /// <summary>
    /// X-Original-Host
    /// </summary>
    public static string XOriginalHostHeaderName { get; } = "X-Original-Host";
 
    /// <summary>
    /// X-Original-Proto
    /// </summary>
    public static string XOriginalProtoHeaderName { get; } = "X-Original-Proto";
 
    /// <summary>
    /// X-Original-Prefix
    /// </summary>
    public static string XOriginalPrefixHeaderName { get; } = "X-Original-Prefix";
}