瀏覽代碼

Add the default-src

tags/v5.0.0alpha1
Lukas Reschke 11 年之前
父節點
當前提交
967b7947a1
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      lib/template.php

+ 2
- 2
lib/template.php 查看文件

@@ -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);
}


Loading…
取消
儲存