generated from smedev/Template-for-SMEServer-Core-Package
* Fri Jan 03 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.6-5.sme
- set more relaxed CSP for roundcube [SME: 12861]
This commit is contained in:
@@ -23,6 +23,12 @@
|
||||
} else {
|
||||
$OUT .= " Alias /$place $dirs{$place}\n";
|
||||
}
|
||||
|
||||
$OUT .= " <Location '/$place'>\n";
|
||||
# strict CSP not yet supported see https://github.com/roundcube/roundcubemail/issues/6202 and few others
|
||||
$OUT .= " Header set Content-Security-Policy \"default-src 'none'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self'; frame-src 'self'; connect-src 'self'; frame-ancestors 'self'; base-uri 'self'; form-action 'self';\"\n";
|
||||
$OUT .= " </Location>\n";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user