Umbraco.Community.CSPManager
1.3.1-beta
See the version list below for details.
dotnet add package Umbraco.Community.CSPManager --version 1.3.1-beta
NuGet\Install-Package Umbraco.Community.CSPManager -Version 1.3.1-beta
<PackageReference Include="Umbraco.Community.CSPManager" Version="1.3.1-beta" />
paket add Umbraco.Community.CSPManager --version 1.3.1-beta
#r "nuget: Umbraco.Community.CSPManager, 1.3.1-beta"
// Install Umbraco.Community.CSPManager as a Cake Addin #addin nuget:?package=Umbraco.Community.CSPManager&version=1.3.1-beta&prerelease // Install Umbraco.Community.CSPManager as a Cake Tool #tool nuget:?package=Umbraco.Community.CSPManager&version=1.3.1-beta&prerelease
Umbraco CSP (Content security policy) manager
Enables you to manage Content Secuirty Policy (CSP) for both the front and back end, via CMS section.
Installation
dotnet add package Umbraco.Community.CSPManager
CSP Management
Configuration
Evaluation
You will also need to give access via the users section to the CSP Manager section.
Nonce Tag Helper
To use CSP nonce you can make use of the Tag Helper.
First you will need to include the namespace in the ViewImports.cshtml
@addTagHelper *, Umbraco.Community.CSPManager
To use the nonce add the following to your <script>
or <style>
tags:
csp-manager-add-nonce="true"
When this is added it will include the nonce in the CSP header and output in the page.
If you need to access the nonce within a data attribute you can use the following:
csp-manager-add-nonce-data-attribute="true"
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
-
net6.0
- Umbraco.Cms.Core (>= 10.8.5)
- Umbraco.Cms.Web.BackOffice (>= 10.8.5)
-
net7.0
- Umbraco.Cms.Core (>= 11.5.0)
- Umbraco.Cms.Web.BackOffice (>= 11.5.0)
-
net8.0
- Umbraco.Cms.Core (> 13.3.0 && <= 14.0.0)
- Umbraco.Cms.Web.BackOffice (> 13.3.0 && <= 14.0.0)
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.4.1 | 2,786 | 9/8/2024 |
1.4.0 | 203 | 8/23/2024 |
1.3.1-beta | 314 | 5/2/2024 |
1.3.0-beta | 155 | 4/5/2024 |
1.2.1 | 5,704 | 3/26/2024 |
1.2.0 | 6,841 | 10/26/2023 |
1.1.0-alpha | 2,294 | 3/7/2023 |
1.0.1-alpha | 295 | 1/11/2023 |
1.0.0-alpha | 167 | 1/6/2023 |