From 4fc9f925befc3179731db7455dfcc9e0018dcb9c Mon Sep 17 00:00:00 2001 From: Rom1-B <8530352+Rom1-B@users.noreply.github.com> Date: Fri, 13 Nov 2026 11:17:57 +0100 Subject: [PATCH] feat: make plugin CSP compliant --- CHANGELOG.md | 6 ++++++ setup.php | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index edb2673..e0de7f6 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.10.1] - 2026-10-05 ### Fixed diff --git a/setup.php b/setup.php index 2d35a77..c483f65 100644 --- a/setup.php +++ b/setup.php @@ -98,12 +98,13 @@ function plugin_init_geninventorynumber() function plugin_version_geninventorynumber() { return [ - 'name' => __s('Inventory number generation', 'geninventorynumber'), - 'version' => PLUGIN_GENINVENTORYNUMBER_VERSION, - 'author' => "TECLIB' + KK", - 'homepage' => 'https://github.com/pluginsGLPI/geninventorynumber', - 'license' => 'GPLv3+', - 'requirements' => [ + 'name' => __s('Inventory number generation', 'geninventorynumber'), + 'version' => PLUGIN_GENINVENTORYNUMBER_VERSION, + 'author' => "TECLIB' + KK", + 'homepage' => 'https://github.com/pluginsGLPI/geninventorynumber', + 'license' => 'GPLv3+', + 'csp_compliant' => true, + 'requirements' => [ 'glpi' => [ 'min' => PLUGIN_GENINVENTORYNUMBER_MIN_GLPI, 'max' => PLUGIN_GENINVENTORYNUMBER_MAX_GLPI,