diff --git a/files_reader/appinfo/app.php b/files_reader/appinfo/app.php index 05dcc5c..b4a31cc 100644 --- a/files_reader/appinfo/app.php +++ b/files_reader/appinfo/app.php @@ -18,15 +18,3 @@ use OCP\Util; \OCA\Files_Reader\Hooks::register(); Util::addscript('files_reader', 'plugin'); -if(class_exists('\\OCP\\AppFramework\\Http\\EmptyContentSecurityPolicy')) { - $manager = \OC::$server->getContentSecurityPolicyManager(); - $csp = new \OCP\AppFramework\Http\EmptyContentSecurityPolicy(); - $csp->addAllowedStyleDomain('\'self\''); - $csp->addAllowedStyleDomain('blob:'); - $csp->addAllowedScriptDomain('\'self\''); - $csp->addAllowedFrameDomain('\'self\''); - $csp->addAllowedChildSrcDomain('\'self\''); - $csp->addAllowedFontDomain('\'self\''); - $csp->addAllowedImageDomain('blob:'); - $manager->addDefaultPolicy($csp); -} diff --git a/files_reader/js/plugin.js b/files_reader/js/plugin.js index 8950b61..329cddb 100644 --- a/files_reader/js/plugin.js +++ b/files_reader/js/plugin.js @@ -79,7 +79,7 @@ if (isMobile || hasTouch) { window.open(viewer, downloadUrl); } else { - $iframe = '