mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Config: Add setting to enable strict CSP
This commit is contained in:
parent
6c68578a6c
commit
0bac6cfe07
@ -55,6 +55,18 @@ class ApplicationConfigForm extends Form
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$this->addElement(
|
||||||
|
'checkbox',
|
||||||
|
'security_use_strict_csp',
|
||||||
|
[
|
||||||
|
'label' => $this->translate('Enable strict content security policy'),
|
||||||
|
'description' => $this->translate(
|
||||||
|
'Set whether to to use strict content security policy (CSP).'
|
||||||
|
. ' This setting helps to protect from cross-site scripting (XSS).'
|
||||||
|
)
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'text',
|
'text',
|
||||||
'global_module_path',
|
'global_module_path',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user