set default CSP on NotFoundResponse

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-09-09 22:37:12 +02:00 committed by Backportbot
parent c092a011e3
commit 258c863b62

View file

@ -37,6 +37,7 @@ class NotFoundResponse extends Response {
public function __construct() { public function __construct() {
parent::__construct(); parent::__construct();
$this->setContentSecurityPolicy(new ContentSecurityPolicy());
$this->setStatus(404); $this->setStatus(404);
} }