mirror of
https://github.com/Yetangitu/owncloud-apps.git
synced 2025-10-02 14:49:17 +02:00
files_reader: added allowedFrameDomain for compatibility with older browsers which do not support the child-src CSP directive
This commit is contained in:
parent
49b3914585
commit
c4f16e6404
1 changed files with 2 additions and 0 deletions
|
@ -46,7 +46,9 @@ class DisplayController extends Controller {
|
|||
|
||||
$csp = new ContentSecurityPolicy();
|
||||
$csp->addAllowedChildSrcDomain('\'self\'');
|
||||
$csp->addAllowedFrameDomain('\'self\'');
|
||||
$csp->addAllowedStyleDomain('blob:');
|
||||
$csp->addAllowedImageDomain('blob:');
|
||||
$response->setContentSecurityPolicy($csp);
|
||||
|
||||
return $response;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue