Merge pull request #4127 from nextcloud/update-legacy-csp-policy

Update legacy CSP policy
This commit is contained in:
Morris Jobke 2017-03-28 17:47:32 -06:00 committed by GitHub
commit dbf6b7ff86
1 changed files with 3 additions and 1 deletions

View 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);
header('X-Frame-Options: Sameorigin'); // Disallow iFraming from other domains