]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update legacy CSP policy 4127/head
authorLukas Reschke <lukas@statuscode.ch>
Tue, 28 Mar 2017 21:55:31 +0000 (23:55 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Tue, 28 Mar 2017 21:55:31 +0000 (23:55 +0200)
Aligns it with the one enforced by the AppFramework

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
lib/private/legacy/response.php

index 69c84e2df6888c3315544a932704d5542558dcd0..d5c9ed78f6435e9c246e7a3812525ad8d96e9964 100644 (file)
@@ -253,7 +253,9 @@ class OC_Response {
                        . 'img-src * data: blob:; '
                        . 'font-src \'self\' data:; '
                        . 'media-src *; ' 
-                       . 'connect-src *';
+                       . 'connect-src *; '
+                       . 'object-src \'none\'; '
+                       . 'base-uri \'self\'; ';
                header('Content-Security-Policy:' . $policy);
 
                // Send fallback headers for installations that don't have the possibility to send