viewFactory->create($viewFactoryData); $view->assignMultiple([ 'message' => $message, 'title' => $title, 'httpStatusCode' => $httpStatusCode, 'errorCodeUrlPrefix' => Typo3Information::URL_EXCEPTION, 'donationUrl' => Typo3Information::URL_DONATE, 'errorCode' => $errorCode, 'requestId' => GeneralUtility::makeInstance(RequestId::class), 'copyrightYear' => $this->typo3Information->getCopyrightYear(), ]); $this->policyRegistry->appendMutationCollection( new ContentSecurityPolicy\MutationCollection( new ContentSecurityPolicy\Mutation( ContentSecurityPolicy\MutationMode::Extend, ContentSecurityPolicy\Directive::StyleSrcElem, ContentSecurityPolicy\SourceKeyword::nonceProxy ) ) ); return $view->render('ErrorPage/Error'); } }