Merge pull request #17078 from nextcloud/fix/default_csp_404
set default CSP on NotFoundResponse
This commit is contained in:
commit
776889f4e1
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ class NotFoundResponse extends Response {
|
|||
public function __construct() {
|
||||
parent::__construct();
|
||||
|
||||
$this->setContentSecurityPolicy(new ContentSecurityPolicy());
|
||||
$this->setStatus(404);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue