ActionController: Always read icingaweb config for csp

Method `$this->Config()` returns config based of current module.
This commit is contained in:
Sukhwinder Dhillon 2023-08-30 09:28:31 +02:00 committed by Johannes Meyer
parent c3b1ad12ab
commit f283c81ed2
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class ActionController extends Zend_Controller_Action
$this->redirectToLogin(Url::fromRequest()); $this->redirectToLogin(Url::fromRequest());
} }
if (! $this->isXhr() && $this->Config()->get('security', 'use_strict_csp', false)) { if (! $this->isXhr() && Config::app()->get('security', 'use_strict_csp', false)) {
Csp::createNonce(); Csp::createNonce();
} }