summaryrefslogtreecommitdiffstats
path: root/lib/Controller/NavigationController.php
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-11-30 10:02:25 -0100
committerMaxence Lange <maxence@artificial-owl.com>2018-11-30 10:02:25 -0100
commit75447af7671b9e45d3f5db0ba75bbfcd6a0318a3 (patch)
tree918ca0f86c3629499ca363080668dc115644ecb5 /lib/Controller/NavigationController.php
parent8b9ca910ba3b0fa7e33c664689954413f0430700 (diff)
parent011074646a68e7d80ff1edccbe627f06d4b401f6 (diff)
Merge remote-tracking branch 'origin/more-for-local-accounts' into more-for-local-accounts
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Controller/NavigationController.php')
-rw-r--r--lib/Controller/NavigationController.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Controller/NavigationController.php b/lib/Controller/NavigationController.php
index 82713dbd..b14f46bd 100644
--- a/lib/Controller/NavigationController.php
+++ b/lib/Controller/NavigationController.php
@@ -45,6 +45,7 @@ use OCA\Social\Service\ActorService;
use OCA\Social\Service\ConfigService;
use OCA\Social\Service\MiscService;
use OCP\AppFramework\Controller;
+use OCP\AppFramework\Http\ContentSecurityPolicy;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Http\FileDisplayResponse;
use OCP\AppFramework\Http\RedirectResponse;
@@ -186,7 +187,11 @@ class NavigationController extends Controller {
// neither.
}
- return new TemplateResponse(Application::APP_NAME, 'main', $data);
+ $csp = new ContentSecurityPolicy();
+ $csp->addAllowedImageDomain('*');
+ $response = new TemplateResponse(Application::APP_NAME, 'main', $data);
+ $response->setContentSecurityPolicy($csp);
+ return $response;
}