set default CSP on NotFoundResponse
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
bf6082e119
commit
a85f2f4165
|
@ -37,6 +37,7 @@ class NotFoundResponse extends Response {
|
|||
public function __construct() {
|
||||
parent::__construct();
|
||||
|
||||
$this->setContentSecurityPolicy(new ContentSecurityPolicy());
|
||||
$this->setStatus(404);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue