Merge pull request #17078 from nextcloud/fix/default_csp_404

set default CSP on NotFoundResponse
This commit is contained in:
Roeland Jago Douma 2019-09-10 09:23:03 +02:00 committed by GitHub
commit 776889f4e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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