mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #17079 from nextcloud/backport/17078/stable17
[stable17] set default CSP on NotFoundResponse
This commit is contained in:
commit
a802ce0d2a
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