Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2021-10-27 22:30:00 +0300
committerGitHub <noreply@github.com>2021-10-27 22:30:00 +0300
commit1597c826d9ed8088dd40f353bf1bb8261d5a1f31 (patch)
tree7560d9cd34e212ea67169b1b70b6b3695618ee0e /plugins/Marketplace
parent51c150058744d55a1c94a937e2d505881709f47a (diff)
Fix CSP issue when viewing marketplace plugin details (#18215)
Diffstat (limited to 'plugins/Marketplace')
-rw-r--r--plugins/Marketplace/Controller.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Marketplace/Controller.php b/plugins/Marketplace/Controller.php
index 0c8efed1e1..f138a5b491 100644
--- a/plugins/Marketplace/Controller.php
+++ b/plugins/Marketplace/Controller.php
@@ -514,6 +514,9 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
$this->setBasicVariablesView($view);
$this->displayWarningIfConfigFileNotWritable();
+ $this->securityPolicy->addPolicy('img-src', '*.matomo.org');
+ $this->securityPolicy->addPolicy('default-src', '*.matomo.org');
+
$view->errorMessage = '';
return $view;