From eb9e5a9829a286f5ad7ee643dc20cfa9c661aa1d Mon Sep 17 00:00:00 2001 From: Rom1-B <8530352+Rom1-B@users.noreply.github.com> Date: Fri, 13 Nov 2026 11:18:23 +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 bb711d8..4f13491 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 + ## [1.14.3] - 2026-11-05 ### Fixed diff --git a/setup.php b/setup.php index 9e99a90..92c90b5 100644 --- a/setup.php +++ b/setup.php @@ -84,12 +84,13 @@ function plugin_init_news() function plugin_version_news() { return [ - 'name' => __s('Alerts', 'news'), - 'version' => PLUGIN_NEWS_VERSION, - 'author' => "TECLIB'", - 'license' => 'GPLv2+', - 'homepage' => 'https://github.com/pluginsGLPI/news', - 'requirements' => [ + 'name' => __s('Alerts', 'news'), + 'version' => PLUGIN_NEWS_VERSION, + 'author' => "TECLIB'", + 'license' => 'GPLv2+', + 'homepage' => 'https://github.com/pluginsGLPI/news', + 'csp_compliant' => true, + 'requirements' => [ 'glpi' => [ 'min' => PLUGIN_NEWS_MIN_GLPI, 'max' => PLUGIN_NEWS_MAX_GLPI,