/**
* Get csp header.
*
* @return array
*/
protected function csp()
{
if (!is_null($this->config['custom-csp'])) {
return ['Content-Security-Policy' => $this->config['custom-csp']];
}
$csp = new CSPBuilder($this->config['csp']);
return $csp->getHeaderArray(false);
}