XperienceCommunity.CSP 1.0.0

dotnet add package XperienceCommunity.CSP --version 1.0.0
NuGet\Install-Package XperienceCommunity.CSP -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XperienceCommunity.CSP" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XperienceCommunity.CSP --version 1.0.0
#r "nuget: XperienceCommunity.CSP, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install XperienceCommunity.CSP as a Cake Addin
#addin nuget:?package=XperienceCommunity.CSP&version=1.0.0

// Install XperienceCommunity.CSP as a Cake Tool
#tool nuget:?package=XperienceCommunity.CSP&version=1.0.0

Xperience Community: CSP Management

Description

Adds a module to the admin site for easy configuration of CSP headers for web channels.

Screenshots

Once installed, a new module appears in the navigation and the dashboard: <a href="src/images/navigation-tile.png"> <img src="src/images/navigation-tile.png" width="600" 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.png"> <img src="src/images/create-new.png" width="600" 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.png"> <img src="src/images/csp-listing.png" width="600" alt="CSP configuration listing screen"> </a>

Supported version

Xperience by Kentico >= 28.2.0

Dependencies

Package Installation

Add the package to your application using the .NET CLI

dotnet add package XperienceCommunity.CSP

Quick Start

  1. Install NuGet package above.

  2. Register the CSP management services using builder.Services.AddXperienceCommunityCspManagement():

    // Program.cs
    
    var builder = WebApplication.CreateBuilder(args);
    
    // ...
    
    builder.Services.AddXperienceCommunityCspManagement();
    
  3. Register the CSP management middleware using app.UseXperienceCommunityCspManagement():

     var app = builder.Build();
    
     app.UseKentico();
    
     // ...
    
     app.UseXperienceCommunityCspManagement();
    

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 143 3/4/2024