diff --git a/templates/layout/captcha-admin.php b/templates/layout/captcha-admin.php index cf2d6ec..703d9df 100644 --- a/templates/layout/captcha-admin.php +++ b/templates/layout/captcha-admin.php @@ -4,6 +4,11 @@ * * @var \App\View\AppView $this */ + +$cspScriptNonce = (string)($this->getRequest()->getAttribute('cspScriptNonce') ?? $this->getRequest()->getAttribute('cspNonce', '')); +$scriptNonceAttr = $cspScriptNonce !== '' ? ' nonce="' . h($cspScriptNonce) . '"' : ''; +$cspStyleNonce = (string)$this->getRequest()->getAttribute('cspStyleNonce', ''); +$styleNonceAttr = $cspStyleNonce !== '' ? ' nonce="' . h($cspStyleNonce) . '"' : ''; ?> @@ -11,17 +16,17 @@