diff options
author | Robin Appelman <robin@icewind.nl> | 2016-11-30 19:11:35 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-30 20:07:38 +0300 |
commit | 6326e43bef3e24ca6a3b74e3d72547a2e2a96c1b (patch) | |
tree | b0fa22c158c73c7be214ce85c58a55ba92c2f549 /appinfo/app.php | |
parent | b93876a4b3a6f36928d681b95c5f11dd066c77b7 (diff) |
allow webworkers
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'appinfo/app.php')
-rw-r--r-- | appinfo/app.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index dbcc368..e2f851f 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -8,7 +8,12 @@ if (\OCP\User::isLoggedIn()) { OCP\Util::addStyle('files_texteditor', 'style'); OCP\Util::addStyle('files_texteditor', 'mobile'); OCP\Util::addscript('files_texteditor', 'editor'); - OCP\Util::addscript('files_texteditor', 'vendor/ace/src-noconflict/ace'); + OCP\Util::addscript('files_texteditor', 'core/vendor/ace-builds/src-noconflict/ace'); + + $cspManager = \OC::$server->getContentSecurityPolicyManager(); + $csp = new \OCP\AppFramework\Http\ContentSecurityPolicy(); + $csp->addAllowedChildSrcDomain("'self'"); + $cspManager->addDefaultPolicy($csp); }); } |