mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
Cleanup CSP header
This commit is contained in:
parent
5e9c83c1a8
commit
27cfd1ee83
1 changed files with 1 additions and 4 deletions
|
|
@ -34,10 +34,7 @@ class CSP
|
||||||
function __toString() : string
|
function __toString() : string
|
||||||
{
|
{
|
||||||
$params = [
|
$params = [
|
||||||
'default-src ' . \implode(' ', $this->default),
|
'default-src ' . \implode(' ', $this->default)
|
||||||
'script-src ' . \implode(' ', $this->script),
|
|
||||||
'img-src ' . \implode(' ', $this->img),
|
|
||||||
'style-src ' . \implode(' ', $this->style),
|
|
||||||
];
|
];
|
||||||
if ($this->script) {
|
if ($this->script) {
|
||||||
$params[] = 'script-src ' . \implode(' ', $this->script);
|
$params[] = 'script-src ' . \implode(' ', $this->script);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue