Config: Add setting to enable strict CSP
This commit is contained in:
parent
6c68578a6c
commit
0bac6cfe07
application/forms/Config/General
|
@ -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(
|
||||
'text',
|
||||
'global_module_path',
|
||||
|
|
Loading…
Reference in New Issue