mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
set default CSP on NotFoundResponse
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
bf6082e119
commit
a85f2f4165
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