Skip to content
Snippets Groups Projects
Unverified Commit 776889f4 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #17078 from nextcloud/fix/default_csp_404

set default CSP on NotFoundResponse
parents 4c850263 a85f2f41
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ class NotFoundResponse extends Response {
public function __construct() {
parent::__construct();
$this->setContentSecurityPolicy(new ContentSecurityPolicy());
$this->setStatus(404);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment