<?php
header("Content-Security-Policy: default-src 'sha256-".base64_encode(hash('sha256', 'console.log("Hello world");', true))."'");
?>
<script>console.log("Hello world");</script>
Tuttavia, continuo a ricevere in Chrome:...
posta
27.05.2014 - 03:42