mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-26 02:29:20 +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
|
||||
{
|
||||
$params = [
|
||||
'default-src ' . \implode(' ', $this->default),
|
||||
'script-src ' . \implode(' ', $this->script),
|
||||
'img-src ' . \implode(' ', $this->img),
|
||||
'style-src ' . \implode(' ', $this->style),
|
||||
'default-src ' . \implode(' ', $this->default)
|
||||
];
|
||||
if ($this->script) {
|
||||
$params[] = 'script-src ' . \implode(' ', $this->script);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue