diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-11-30 10:02:25 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-11-30 10:02:25 -0100 |
commit | 75447af7671b9e45d3f5db0ba75bbfcd6a0318a3 (patch) | |
tree | 918ca0f86c3629499ca363080668dc115644ecb5 /lib/Controller/NavigationController.php | |
parent | 8b9ca910ba3b0fa7e33c664689954413f0430700 (diff) | |
parent | 011074646a68e7d80ff1edccbe627f06d4b401f6 (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.php | 7 |
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; } |