From 8aaab0dbadf1798bdc11e8fefddad01cf23e1892 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 2 Dec 2015 17:30:40 +0100 Subject: Allow framing 'self' This is required by the pdf viewer, since the files app on master uses the AppFramework it had applied the more strict defaults which made it not work on master. --- apps/files/tests/controller/ViewControllerTest.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/files/tests/controller/ViewControllerTest.php') diff --git a/apps/files/tests/controller/ViewControllerTest.php b/apps/files/tests/controller/ViewControllerTest.php index 028dfce8c58..0e8ab5e752d 100644 --- a/apps/files/tests/controller/ViewControllerTest.php +++ b/apps/files/tests/controller/ViewControllerTest.php @@ -245,6 +245,9 @@ class ViewControllerTest extends TestCase { ], ] ); + $policy = new Http\ContentSecurityPolicy(); + $policy->addAllowedFrameDomain('\'self\''); + $expected->setContentSecurityPolicy($policy); $this->assertEquals($expected, $this->viewController->index('MyDir', 'MyView')); } } -- cgit v1.2.3