stwaddle

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.json
dotnet add package --source stwaddle --version 0.1.0 Stwaddle.AspNetCore.Security

About 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'");
    });
Details
NuGet
2026-10-04 09:48:41 -05:00
0
Stwaddle
27 KiB
Assets (2)
Versions (1) View all
0.1.0 2026-10-04