Allow inline styles for theming images

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/18140/head
Julius Härtl 6 years ago
parent fa1b23b67a
commit 9691360f6e
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 3
      apps/theming/lib/Controller/ThemingController.php

@ -379,6 +379,9 @@ class ThemingController extends Controller {
}
$response = new FileDisplayResponse($file);
$csp = new Http\ContentSecurityPolicy();
$csp->allowInlineStyle();
$response->setContentSecurityPolicy($csp);
$response->cacheFor(3600);
$response->addHeader('Content-Type', $this->config->getAppValue($this->appName, $key . 'Mime', ''));
$response->addHeader('Content-Disposition', 'attachment; filename="' . $key . '"');

Loading…
Cancel
Save