From 815c6d0d096bbd9e68962852b1d2467e21c82dfd Mon Sep 17 00:00:00 2001
From: Rom1-B <8530352+Rom1-B@users.noreply.github.com>
Date: Fri, 13 Nov 2026 11:18:15 +0100
Subject: [PATCH] feat: make plugin CSP compliant
---
CHANGELOG.md | 6 ++++++
setup.php | 11 ++++++-----
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3fe83bf..ad1cd26 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
+## [Unreleased]
+
+### Changed
+
+- Make the plugin compatible with the Content Security Policy
+
## [2.6.3] - 2026-10-06
### Fixed
diff --git a/setup.php b/setup.php
index ba66123..f2d7788 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,