Browse Source

Merge pull request #17078 from nextcloud/fix/default_csp_404

set default CSP on NotFoundResponse
tags/v18.0.0beta1
Roeland Jago Douma 4 years ago
parent
commit
776889f4e1
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      lib/public/AppFramework/Http/NotFoundResponse.php

+ 1
- 0
lib/public/AppFramework/Http/NotFoundResponse.php View File

@@ -37,6 +37,7 @@ class NotFoundResponse extends Response {
public function __construct() {
parent::__construct();

$this->setContentSecurityPolicy(new ContentSecurityPolicy());
$this->setStatus(404);
}


Loading…
Cancel
Save