Stwaddle.AspNetCore.Security (0.1.0)
Published 2026-10-04 09:48:41 -05:00 by spencer
Installation
dotnet nuget add source --name stwaddle --username your_username --password your_token https://gitea.stwaddle.com/api/packages/stwaddle/nuget/index.jsondotnet add package --source stwaddle --version 0.1.0 Stwaddle.AspNetCore.SecurityAbout this package
Shared ASP.NET Core security-header baseline (CSP and friends) for the Stwaddle app fleet.
Stwaddle.AspNetCore.Security
Shared ASP.NET Core security-header baseline (CSP and friends) for the Stwaddle app fleet.
app.UseStwaddleSecurityHeaders(
SecurityHeadersOptions.SpaResourceApp("https://auth.stwaddle.com"),
o =>
{
o.Csp.AddFrom<ClientConfigRenderer>("script-src", r => r.ScriptCspHash);
o.Csp.SetForPath("frame-ancestors", "/silent-callback.html", "'self'");
});