Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_pdfviewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/DisplayController.php')
-rw-r--r--lib/Controller/DisplayController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/DisplayController.php b/lib/Controller/DisplayController.php
index 9878fce..fcba596 100644
--- a/lib/Controller/DisplayController.php
+++ b/lib/Controller/DisplayController.php
@@ -68,7 +68,8 @@ class DisplayController extends Controller {
$policy->addAllowedChildSrcDomain('\'self\'');
$policy->addAllowedFontDomain('data:');
$policy->addAllowedImageDomain('*');
- $policy->allowEvalScript(false);
+ // Needed for the ES5 compatible build of PDF.js
+ $policy->allowEvalScript(true);
$response->setContentSecurityPolicy($policy);
return $response;