PHP code example of blackbird / module-csp-manager
1. Go to this page and download the library: Download blackbird/module-csp-manager library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
blackbird / module-csp-manager example snippets
return [
'csp' => [
'rules' => [
'img-src' => 'mysite.com cdn.mysite.dam',
'script-src' => 'scripts.cdn.com',
],
'splitter_config' => [
'enabled' => true,
'max_header_size' => 8192,
],
],
// ... rest of config
];