Allow loading avatars from remote

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/76/head
Julius Härtl 2018-11-29 10:15:25 +01:00
rodzic 2d06e10d80
commit 61b727d52e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4C614C6ED2CDE6DF
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -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;
}