An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Lib.AspNetCore.Security
[![NuGet Version](https://img.shields.io/nuget/v/Lib.AspNetCore.Security?label=Lib.AspNetCore.Security&logo=nuget)](https://www.nuget.org/packages/Lib.AspNetCore.Security)

[![NuGet Version](https://img.shields.io/nuget/v/Lib.AspNetCore.Mvc.Security?label=Lib.AspNetCore.Mvc.Security&logo=nuget)](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)