Lib.AspNetCore.Security 3.2.1

dotnet add package Lib.AspNetCore.Security --version 3.2.1
NuGet\Install-Package Lib.AspNetCore.Security -Version 3.2.1
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="Lib.AspNetCore.Security" Version="3.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Lib.AspNetCore.Security --version 3.2.1
#r "nuget: Lib.AspNetCore.Security, 3.2.1"
#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 Lib.AspNetCore.Security as a Cake Addin
#addin nuget:?package=Lib.AspNetCore.Security&version=3.2.1

// Install Lib.AspNetCore.Security as a Cake Tool
#tool nuget:?package=Lib.AspNetCore.Security&version=3.2.1


NuGet Version

NuGet Version

Lib.AspNetCore.Security is a library which provides security features like Content Security Policy, Strict Transport Security or Expect-CT for ASP.NET Core

Getting Started

You can get Lib.AspNetCore.Security and Lib.AspNetCore.Mvc.Security from NuGet.

PM>  Install-Package Lib.AspNetCore.Security
PM>  Install-Package Lib.AspNetCore.Mvc.Security


The documentation is available here.

There are also blog posts available describing key features of the library (some of them have been written in context of ASP.NET MVC or previous versions of this library but the core idea haven't changed):


The demo project is available here.


My blog and open source projects are result of my passion for software development, but they require a fair amount of my personal time. If you got value from any of the content I create, then I would appreciate your support by sponsoring me (either monthly or one-time).

Copyright © 2016 - 2024 Tomasz Pęczek

Licensed under the MIT License

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Lib.AspNetCore.Security:

Package Downloads

Lib.AspNetCore.Mvc.Security is a library which provides additional control over security features like Content Security Policy for ASP.NET Core MVC

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.2.1 628 3/2/2024
3.2.0 36,265 1/14/2021
3.1.0 9,390 9/22/2019
3.0.0 6,314 3/26/2018
2.3.0 1,281 8/8/2017
2.2.0 9,628 7/2/2017
2.1.0 1,425 6/2/2017
2.0.0 1,425 5/3/2017