This commit is contained in:
Matteo Gheza 2021-06-27 01:43:50 +02:00
parent 4813410475
commit c094271892
1 changed files with 1 additions and 1 deletions

View File

@ -921,7 +921,7 @@ function init_class($enableDebugger=true, $headers=true)
if($headers) {
//TODO adding require-trusted-types-for 'script';
$script_nonce_csp = (defined("UI_MODE") && get_option("enable_js_nonce")) ? "'nonce-{$tools->script_nonce}' " : "";
$script_nonce_csp = (defined("UI_MODE") && get_option("enable_js_nonce")) ? "'nonce-{$tools->script_nonce}' " : "'unsafe-inline' ";
$csp_rules = [
"default-src 'self' data: *.tile.openstreetmap.org nominatim.openstreetmap.org",
"connect-src 'self' *.sentry.io nominatim.openstreetmap.org",