Do not send empty CSP
This commit is contained in:
parent
d39a6e59c7
commit
b7fcebfba8
|
@ -97,7 +97,9 @@ function page_headers() {
|
|||
foreach ($adminer->csp() as $key => $val) {
|
||||
$csp[] = "$key $val";
|
||||
}
|
||||
header("Content-Security-Policy: " . implode("; ", $csp));
|
||||
if ($csp) {
|
||||
header("Content-Security-Policy: " . implode("; ", $csp));
|
||||
}
|
||||
$adminer->headers();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue