Disallow inline JS

remotes/origin/stable5
Lukas Reschke 13 years ago
parent 967b7947a1
commit af8c193605
  1. 1
      lib/template.php

@ -190,6 +190,7 @@ class OC_Template{
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: default-src \'self\'; script-src \'self\' \'unsafe-inline\'; style-src \'self\' \'unsafe-inline\''); // Disallow external ressources + eval()
header('X-WebKit-CSP: default-src \'self\'; style-src \'self\' \'unsafe-inline\'');
$this->findTemplate($name);
}

Loading…
Cancel
Save