OwaspHeaders.Core
6.0.3
See the version list below for details.
dotnet add package OwaspHeaders.Core --version 6.0.3
NuGet\Install-Package OwaspHeaders.Core -Version 6.0.3
<PackageReference Include="OwaspHeaders.Core" Version="6.0.3" />
paket add OwaspHeaders.Core --version 6.0.3
#r "nuget: OwaspHeaders.Core, 6.0.3"
// Install OwaspHeaders.Core as a Cake Addin #addin nuget:?package=OwaspHeaders.Core&version=6.0.3 // Install OwaspHeaders.Core as a Cake Tool #tool nuget:?package=OwaspHeaders.Core&version=6.0.3
OwaspHeaders.Core
An ASP .NET Core middleware for injection OWASP recommended HTTP Headers for increased security. This project is designed against the OWASP Secure Headers Project.
Quick Starts
- Create a .NET (either Framework, Core, or 5+) project which uses ASP .NET Core
Example;
dotnet new webapi -n exampleProject
- Add a reference to the OwaspHeaders.Core NuGet package.
Example:
dotnet add package OwaspHeaders.Core
- Alter the Startup (pre .NET 6) or program (post .NET 6) class to include the following:
app.UseSecureHeadersMiddleware(
SecureHeadersMiddlewareExtensions
.BuildDefaultConfiguration()
);
This will add a number of default HTTP headers to all responses from your server component.
The following is an example of the response headers from version 6.0.2 (taken on May 15th, 2023)
cache-control: max-age=31536000, private
strict-transport-security: max-age=63072000;includeSubDomains
x-frame-options: DENY
x-xss-protection: 0
x-content-type-options: nosniff
content-security-policy: script-src 'self';object-src 'self';block-all-mixed-content;upgrade-insecure-requests;
x-permitted-cross-domain-policies: none;
referrer-policy: no-referrer
Please note: The above example contains only the headers added by the Middleware.
Source Code Repo
The source code for this NuGet package can be found at: https://github.com/GaProgMan/OwaspHeaders.Core.
Issues and Bugs
Please raise any issues and bugs at the above mentioned source code repo.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.1.1)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on OwaspHeaders.Core:
Package | Downloads |
---|---|
Whipstaff.AspNetCore
Re-usable logic for working with ASP.NET Core. |
|
wjsz-base
wjsz基础库 |
|
OwaspHeaders.IsolatedFunction
A .NET Core middleware for injecting the Owasp recommended HTTP Headers into Azure Isolated Functions |
|
DojoTools
Toolkit for microservices designing developed by Pod2 in Bakery Net Dojo at Globant - Aug 2022 |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on OwaspHeaders.Core:
Repository | Stars |
---|---|
jeangatto/ASP.NET-Core-Clean-Architecture-CQRS-Event-Sourcing
ASP.NET Core, C#, CQRS Event Sourcing, REST API, DDD, SOLID Principles and Clean Architecture
|
|
GaProgMan/OnionArch
A .NET Core demo application which uses the Onion Architecture
|
Version | Downloads | Last updated | |
---|---|---|---|
9.7.2 | 30,921 | 3 months ago | |
9.7.1 | 221 | 3 months ago | |
9.7.0 | 395 | 3 months ago | |
9.6.3 | 229 | 3 months ago | |
9.6.2 | 210 | 3 months ago | |
9.6.1 | 224 | 3 months ago | |
9.6.0 | 212 | 3 months ago | |
9.5.0 | 321 | 3 months ago | |
9.4.3 | 10,420 | 3 months ago | |
9.4.2 | 3,174 | 3 months ago | |
9.4.1 | 611 | 4 months ago | |
9.4.0 | 302 | 4 months ago | |
9.3.0 | 1,092 | 4 months ago | |
9.2.3 | 386 | 4 months ago | |
9.2.2 | 218 | 4 months ago | |
9.2.1 | 213 | 4 months ago | |
9.2.0 | 289 | 4 months ago | |
9.1.1 | 879 | 4 months ago | |
9.0.1 | 3,356 | 4 months ago | |
9.0.0 | 270 | 4 months ago | |
8.1.3 | 18,168 | 5 months ago | |
8.1.2 | 194 | 5 months ago | |
8.1.1 | 202 | 5 months ago | |
8.1.0 | 70,465 | 10 months ago | |
8.0.0 | 103,245 | 12/3/2023 | |
7.5.1 | 48,294 | 8/9/2023 | |
7.5.0 | 27,462 | 6/7/2023 | |
7.0.1 | 2,002 | 6/5/2023 | |
7.0.0 | 263 | 6/5/2023 | |
6.1.0 | 3,330 | 5/15/2023 | |
6.0.5 | 467 | 5/15/2023 | |
6.0.4 | 242 | 5/15/2023 | |
6.0.3 | 250 | 5/15/2023 | |
6.0.2 | 419 | 5/11/2023 | |
6.0.1 | 249 | 5/11/2023 | |
6.0.0 | 1,233 | 5/11/2023 | |
5.0.0 | 350 | 5/11/2023 | |
4.6.2 | 2,387 | 5/11/2023 | |
4.6.1 | 244 | 5/11/2023 | |
4.6.0 | 278 | 5/11/2023 | |
4.5.1 | 225,121 | 5/15/2022 | |
4.5.0 | 514 | 5/15/2022 | |
4.4.0 | 42,254 | 4/8/2022 | |
4.3.0 | 527 | 4/8/2022 | |
4.2.0 | 463,093 | 12/31/2019 | |
4.1.1 | 7,694 | 11/16/2019 | |
4.1.0 | 2,004 | 10/23/2019 | |
3.5.2 | 28,932 | 7/19/2019 | |
3.5.1 | 647 | 7/19/2019 | |
3.5.0 | 660 | 7/19/2019 | |
3.4.1 | 660 | 7/19/2019 | |
3.4.0 | 15,973 | 3/16/2019 | |
3.3.2 | 28,744 | 5/1/2018 | |
3.3.1 | 3,630 | 4/16/2018 | |
3.3.0 | 2,120 | 4/16/2018 | |
3.2.0 | 1,233 | 4/16/2018 | |
3.1.2 | 1,242 | 4/16/2018 | |
3.1.1 | 1,340 | 4/13/2018 | |
3.1.0 | 1,302 | 4/7/2018 | |
3.0.0.3 | 1,843 | 3/20/2018 | |
3.0.0.2 | 1,244 | 3/20/2018 | |
3.0.0.1 | 2,264 | 2/25/2018 | |
3.0.0 | 1,295 | 2/17/2018 | |
2.1.0 | 3,578 | 1/2/2018 | |
2.0.0.1 | 1,604 | 11/23/2017 | |
2.0.0 | 2,737 | 9/20/2017 | |
1.6.0 | 1,276 | 8/15/2017 | |
1.5.0 | 1,222 | 8/13/2017 | |
1.0.1 | 1,421 | 7/25/2017 | |
0.0.0.1 | 1,706 | 7/25/2017 |