Merge pull request #17079 from nextcloud/backport/17078/stable17

[stable17] set default CSP on NotFoundResponse
This commit is contained in:
Roeland Jago Douma 2019-09-10 10:50:17 +02:00 committed by GitHub
commit a802ce0d2a
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);
}