Make WordPress Core

Ticket #10237: 10237.patch

File 10237.patch, 513 bytes (added by hakre, 15 years ago)

Content Security Policy (CSP) header in /wp-admin/

  • wp-admin/admin-header.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    66 * @subpackage Administration
    77 */
    88
     9@header("X-Content-Security-Policy: allow 'self'");
    910@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    1011if (!isset($_GET["page"])) require_once('admin.php');
    1112