NetLah.Extensions.HttpOverrides
1.0.0-rc3
Prefix Reserved
This is a prerelease version of NetLah.Extensions.HttpOverrides.
dotnet add package NetLah.Extensions.HttpOverrides --version 1.0.0-rc3
NuGet\Install-Package NetLah.Extensions.HttpOverrides -Version 1.0.0-rc3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NetLah.Extensions.HttpOverrides" Version="1.0.0-rc3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetLah.Extensions.HttpOverrides --version 1.0.0-rc3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NetLah.Extensions.HttpOverrides, 1.0.0-rc3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NetLah.Extensions.HttpOverrides as a Cake Addin #addin nuget:?package=NetLah.Extensions.HttpOverrides&version=1.0.0-rc3&prerelease // Install NetLah.Extensions.HttpOverrides as a Cake Tool #tool nuget:?package=NetLah.Extensions.HttpOverrides&version=1.0.0-rc3&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NetLah.Extensions.HttpOverrides - .NET Library
NetLah.Extensions.HttpOverrides is a library support setting ASP.NET Core HttpOverrides from configuration.
Nuget package
Build Status
Getting started
1. Add/Update PackageReference to .csproj
<ItemGroup>
<PackageReference Include="NetLah.Extensions.HttpOverrides" Version="1.0.0" />
</ItemGroup>
2. Settings From Configuration
builder.Services.AddHttpOverrides(builder.Configuration);
3. Applies Http Overrides
app.UseHttpOverrides(logger);
Overrided by ASPNETCORE_FORWARDEDHEADERS_ENABLED
This HttpOverrides will check configuration ASPNETCORE_FORWARDEDHEADERS_ENABLED or ForwardedHeaders_Enabled not turned on to not override default behavior of ASP.NETCore.
Reference ForwardedHeadersOptionsSetup.cs
Sample and default configuration
{
"HealthCheck": {
"IsEnabled": true,
"IsAzureAppServiceContainer": false, // will include /healthz and /robots933456.txt
"LogLevel": "Debug",
"Path": "/healthz",
"Paths": [ "/healthz", "/robots933456.txt" ],
"Port": null,
"Prefix": null,
"Suffix": null,
"RemoveResponseWriter": false
},
"HttpOverrides": {
"ClearForwardLimit": false,
"ClearKnownProxies": false,
"ClearKnownNetworks": false,
"ForwardLimit": 1,
"KnownProxies": "::1",
"KnownNetworks": "127.0.0.1/8",
"ForwardedForHeaderName": "X-Forwarded-For",
"ForwardedHostHeaderName": "X-Forwarded-Host",
"ForwardedProtoHeaderName": "X-Forwarded-Proto",
"OriginalForHeaderName": "X-Original-For",
"OriginalHostHeaderName": "X-Original-Host",
"OriginalProtoHeaderName": "X-Original-Proto",
"ForwardedHeaders": "", // XForwardedFor,XForwardedHost,XForwardedProto
"AllowedHosts": "" // "*"
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- NetLah.Extensions.Logging.Reference (>= 1.0.0-rc2)
-
net7.0
- NetLah.Extensions.Logging.Reference (>= 1.0.0-rc2)
-
net8.0
- NetLah.Extensions.Logging.Reference (>= 1.0.0-rc2)
-
net9.0
- NetLah.Extensions.Logging.Reference (>= 1.0.0-rc2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on NetLah.Extensions.HttpOverrides:
Package | Downloads |
---|---|
NetLah.Extensions.SpaServices.Hosting
The ASP.NET Core hosting the single-page application |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-rc3 | 47 | 11/27/2024 |
1.0.0-rc2 | 321 | 3/21/2024 |
1.0.0-rc1 | 225 | 1/12/2024 |
0.3.0-preview1 | 275 | 3/15/2023 |
0.2.6 | 440 | 1/25/2023 |
0.2.5 | 415 | 1/10/2023 |
0.2.4 | 303 | 1/10/2023 |
0.2.3 | 347 | 1/9/2023 |
0.2.2 | 492 | 1/2/2023 |
0.2.1 | 347 | 12/15/2022 |
0.2.1-rc1 | 671 | 9/14/2022 |
0.2.0 | 464 | 9/3/2022 |
0.2.0-rc1 | 128 | 9/2/2022 |
0.2.0-a1 | 184 | 8/30/2022 |