Add Permissions Policy headers to ASP.NET Core (Addons to Joonasw ASP.NET Core Security Headers library)
"AspNetCore.SecurityHeaders.Addons" is an extensions library to the greafull Joonasw ASP.NET Core Security Headers library : https://github.com/juunas11/aspnetcore-security-headers
Actualy, the addons cover the "Permissions-Policy" which is the renamed version of "Features-Policy" headers.
The library is available on Nuget : https://www.nuget.org/packages/Peppermint.AspNetCore.SecurityHeaders.Addons
// Dependency injection
app.UsePermissionsPolicy();
- .NET 6 runtime (LTS)
- .NET 7 runtime (STS)
- .NET 8 (LTS)
Thanks to Joonasw library : https://github.com/juunas11/aspnetcore-security-headers