Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
set default CSP on NotFoundResponse
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer authored and Backportbot committed Sep 10, 2019
commit 258c863b628bf9bed4d6e7791cea0561d46cff58
1 change: 1 addition & 0 deletions lib/public/AppFramework/Http/NotFoundResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class NotFoundResponse extends Response {
public function __construct() {
parent::__construct();

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

Expand Down