XperienceCommunity.CSP
4.0.1
dotnet add package XperienceCommunity.CSP --version 4.0.1
NuGet\Install-Package XperienceCommunity.CSP -Version 4.0.1
<PackageReference Include="XperienceCommunity.CSP" Version="4.0.1" />
paket add XperienceCommunity.CSP --version 4.0.1
#r "nuget: XperienceCommunity.CSP, 4.0.1"
// Install XperienceCommunity.CSP as a Cake Addin #addin nuget:?package=XperienceCommunity.CSP&version=4.0.1 // Install XperienceCommunity.CSP as a Cake Tool #tool nuget:?package=XperienceCommunity.CSP&version=4.0.1
Xperience Community: Content Security Policy (CSP) Management
Description
Adds a module to the admin site for easy configuration of Content Security Policy (CSP) headers for web channels.
Screenshots
Once installed, a new module appears in the navigation and the dashboard: <a href="/src/images/navigation-tile.jpg"> <img src="/src/images/navigation-tile.jpg" width="800" alt="CSP Management module in navigation"> </a>
Screen for creating a new CSP configuration (on a per source url basis): <a href="/src/images/create-new.jpg"> <img src="/src/images/create-new.jpg" width="800" alt="Create a new CSP configuration screen"> </a>
Listing shows all configurations, including which web channel they are assigned to. <a href="/src/images/csp-listing.jpg"> <img src="/src/images/csp-listing.jpg" width="800" alt="CSP configuration listing screen"> </a>
Additional Features
Feature | Version Added | Documentation |
---|---|---|
CSP Nonce Support | 2.2.0 | Nonce-Support.md |
CSP Violation Report Support | 3.0.0 | Violation-Report-Support.md |
User Permissions | 4.0.0 | User-Permissions.md |
Automatic Violation Report Cleanup | 4.0.0 | Violation-Report-Cleanup.md |
Library Version Matrix
Xperience Version | Library Version |
---|---|
>= 30.1.3 | 4.0.0 |
>= 29.1.4 | 2.0.0 |
>= 28.3.0 | 1.0.0 |
Dependencies
Package Installation
Add the package to your application using the .NET CLI
dotnet add package XperienceCommunity.CSP
Quick Start
Install NuGet package above.
Register the CSP management services using
builder.Services.AddXperienceCommunityCspManagement()
:// Program.cs var builder = WebApplication.CreateBuilder(args); builder.Services.AddKentico(); // ... builder.Services.AddXperienceCommunityCspManagement();
Register the CSP management middleware using
app.UseXperienceCommunityCspManagement()
:var app = builder.Build(); app.UseKentico(); // ... app.UseXperienceCommunityCspManagement();
That's it, launch your website and the module should be installed ready to go! Once you've configured your CSP headers, load a page on the website and check the headers in your browser console.
Contributing
Feel free to submit issues or pull requests to the repository, this is a community package and everyone is welcome to support.
License
Distributed under the MIT License. See LICENSE.md
for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net8.0
- Kentico.Xperience.Admin (>= 30.1.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.