Skip to main content
NuStreamDocs.Csp package icon

NuStreamDocs.Csp

Generates a per-page Content-Security-Policy. At the end of rendering, each page's inline scripts (and, optionally, styles) are SHA-256 hashed and a Content-Security-Policy meta tag is injected into the head, with a `'self'`-based directive set tuned for self-hosted static sites. Pairs with NuStreamDocs.Privacy (run after it so localized assets need no extra origins). No JavaScript, no build-phase work; host-agnostic.

Total Downloads
827
827
Published
Sep 21, 2026
Latest stable version

Install

.NET CLI
dotnet add package NuStreamDocs.Csp --version 1.13.0
Package Manager Console
Install-Package NuStreamDocs.Csp -Version 1.13.0
PackageReference
<PackageReference Include="NuStreamDocs.Csp" Version="1.13.0" />

Frameworks

net10.0 net11.0

Dependencies

[1.13.0, )
[10.0.12, )
[1.13.0, )
[10.0.12, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.