diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-10-27 22:30:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 22:30:00 +0300 |
commit | 1597c826d9ed8088dd40f353bf1bb8261d5a1f31 (patch) | |
tree | 7560d9cd34e212ea67169b1b70b6b3695618ee0e /plugins/Marketplace | |
parent | 51c150058744d55a1c94a937e2d505881709f47a (diff) |
Fix CSP issue when viewing marketplace plugin details (#18215)
Diffstat (limited to 'plugins/Marketplace')
-rw-r--r-- | plugins/Marketplace/Controller.php | 3 |
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; |