From 1d37f8bc47ea1ba4b06eab9e2c06cf6f5a4e8fe7 Mon Sep 17 00:00:00 2001
From: "Romain B." <8530352+Rom1-B@users.noreply.github.com>
Date: Wed, 25 Nov 2026 12:01:42 +0100
Subject: [PATCH] feat: make plugin CSP compliant (#123)
---
CHANGELOG.md | 4 ++++
setup.php | 11 ++++++-----
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ac22f62..a83a9e1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Add Transifex translations link to README
+### Changed
+
+- Make the plugin compatible with the Content Security Policy
+
## [2.7.0] - 2026-10-06
### Added
diff --git a/setup.php b/setup.php
index 433c955..dceedbb 100644
--- a/setup.php
+++ b/setup.php
@@ -92,11 +92,12 @@ function plugin_itilcategorygroups_check_prerequisites()
function plugin_version_itilcategorygroups()
{
return [
- 'name' => __s('ItilCategory Groups', 'itilcategorygroups'),
- 'version' => PLUGIN_ITILCATEGORYGROUPS_VERSION,
- 'author' => "TECLIB'",
- 'homepage' => 'https://github.com/pluginsGLPI/itilcategorygroups',
- 'requirements' => [
+ 'name' => __s('ItilCategory Groups', 'itilcategorygroups'),
+ 'version' => PLUGIN_ITILCATEGORYGROUPS_VERSION,
+ 'author' => "TECLIB'",
+ 'homepage' => 'https://github.com/pluginsGLPI/itilcategorygroups',
+ 'csp_compliant' => true,
+ 'requirements' => [
'glpi' => [
'min' => PLUGIN_ITILCATEGORYGROUPS_MIN_GLPI,
'max' => PLUGIN_ITILCATEGORYGROUPS_MAX_GLPI,