https://github.com/tpeczek/lib.aspnetcore.security
Lib.AspNetCore.Security is a library which provides security features like Content Security Policy, Strict Transport Security or Expect-CT for ASP.NET Core
https://github.com/tpeczek/lib.aspnetcore.security
asp-net-core csp hsts security
Last synced: 6 months ago
JSON representation
Lib.AspNetCore.Security is a library which provides security features like Content Security Policy, Strict Transport Security or Expect-CT for ASP.NET Core
- Host: GitHub
- URL: https://github.com/tpeczek/lib.aspnetcore.security
- Owner: tpeczek
- License: mit
- Created: 2016-03-07T22:58:13.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2025-01-07T09:16:36.000Z (9 months ago)
- Last Synced: 2025-03-30T02:06:00.070Z (6 months ago)
- Topics: asp-net-core, csp, hsts, security
- Language: C#
- Homepage:
- Size: 991 KB
- Stars: 32
- Watchers: 4
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Lib.AspNetCore.Security
[](https://www.nuget.org/packages/Lib.AspNetCore.Security)[](https://www.nuget.org/packages/Lib.AspNetCore.Mvc.Security)
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](https://www.nuget.org/packages/Lib.AspNetCore.Security) and [Lib.AspNetCore.Mvc.Security](https://www.nuget.org/packages/Lib.AspNetCore.Mvc.Security/) from NuGet.
```
PM> Install-Package Lib.AspNetCore.Security
``````
PM> Install-Package Lib.AspNetCore.Mvc.Security
```## Documentation
The documentation is available [here](https://tpeczek.github.io/Lib.AspNetCore.Security/).
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](https://www.tpeczek.com/2016/12/content-security-policy-in-aspnet-core.html)
- [Clearing site data upon sign out in ASP.NET Core](https://www.tpeczek.com/2018/02/clearing-site-data-upon-sign-out-in.html)
- [Preparing for Chrome's Certificate Transparency policy - Expect-CT with reporting in ASP.NET Core](https://www.tpeczek.com/2017/05/preparing-for-chromes-certificate.html)## Demos
The demo project is available [here](https://github.com/tpeczek/Demo.AspNetCore.Security).
## Donating
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](https://github.com/sponsors/tpeczek) (either monthly or one-time).
## Copyright and License
Copyright © 2016 - 2025 Tomasz Pęczek
Licensed under the [MIT License](https://github.com/tpeczek/Lib.AspNetCore.Security/blob/master/LICENSE.md)