Add the default-src

This commit is contained in:
Lukas Reschke 2013-01-20 12:19:09 +01:00
parent c82d6e5153
commit 967b7947a1
1 changed files with 2 additions and 2 deletions

View File

@ -189,8 +189,8 @@ class OC_Template{
header('X-Frame-Options: Sameorigin'); // Disallow iFraming from other domains
header('X-XSS-Protection: 1; mode=block'); // Enforce browser based XSS filters
header('X-Content-Type-Options: nosniff'); // Disable sniffing the content type for IE
header('Content-Security-Policy: script-src \'self\' \'unsafe-inline\'; object-src \'self\''); // Disallow external JS/Flash + eval()
header('Content-Security-Policy: default-src \'self\'; script-src \'self\' \'unsafe-inline\'; style-src \'self\' \'unsafe-inline\''); // Disallow external ressources + eval()
$this->findTemplate($name);
}