1
0
Fork 0
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:
frankdelange 2015-09-07 15:23:08 +02:00
parent 49b3914585
commit c4f16e6404

View file

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