mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Merge pull request #18581 from nextcloud/backport/18140/stable16
[stable16] Allow inline styles for theming images
This commit is contained in:
commit
62b4de04b1
1 changed files with 3 additions and 0 deletions
|
|
@ -383,6 +383,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…
Reference in a new issue