Lib.AspNetCore.Security is a library which provides security features like Content Security Policy, Strict Transport Security or Expect-CT for ASP.NET Core
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):
- Content Security Policy in ASP.NET Core MVC - TagHelper
- Clearing site data upon sign out in ASP.NET Core
- Preparing for Chrome's Certificate Transparency policy - Expect-CT with reporting in ASP.NET Core
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 - 2025 Tomasz Pęczek
Licensed under the MIT License