Merge pull request #17078 from nextcloud/fix/default_csp_404
set default CSP on NotFoundResponse
This commit is contained in:
commit
776889f4e1
|
@ -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