Dotclear

Changeset 3276:78fe7ff87661 for inc


Ignore:
Timestamp:
07/20/16 09:39:16 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

First step of CSP integration, admin only up to now ; addresses #1867

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r3262 r3276  
    9898               self::setXFrameOptions(); 
    9999          } 
     100 
     101          # Content-Security-Policy (report only up to now) 
     102          header( 
     103               "Content-Security-Policy: ". 
     104                    "default-src 'self' ; ". 
     105                    "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; ". 
     106                    "style-src 'self' 'unsafe-inline' ; ". 
     107                    "img-src 'self' data:". 
     108                    (version_compare(phpversion(),'5.4','>=') ? " ; report-uri ".DC_ADMIN_URL."csp_report.php" : '') 
     109               ); 
     110 
    100111          echo 
    101112          '<!DOCTYPE html>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map