diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-09-09 22:37:12 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-09-09 22:37:12 +0200 |
commit | a85f2f416524036cf7e55fec2e35ae575c0eb223 (patch) | |
tree | c7fd982d8651e6d9f713816c7c8d953d83b19591 /lib | |
parent | bf6082e119d1c2420286dbcdbbfda1b1e196d9a0 (diff) | |
download | nextcloud-server-a85f2f416524036cf7e55fec2e35ae575c0eb223.tar.gz nextcloud-server-a85f2f416524036cf7e55fec2e35ae575c0eb223.zip |
set default CSP on NotFoundResponse
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/AppFramework/Http/NotFoundResponse.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Http/NotFoundResponse.php b/lib/public/AppFramework/Http/NotFoundResponse.php index 6d764ec526e..2ae3c41fe4a 100644 --- a/lib/public/AppFramework/Http/NotFoundResponse.php +++ b/lib/public/AppFramework/Http/NotFoundResponse.php @@ -37,6 +37,7 @@ class NotFoundResponse extends Response { public function __construct() { parent::__construct(); + $this->setContentSecurityPolicy(new ContentSecurityPolicy()); $this->setStatus(404); } |