mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #4127 from nextcloud/update-legacy-csp-policy
Update legacy CSP policy
This commit is contained in:
commit
dbf6b7ff86
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue