mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Tweaked jsTree settings, disabled web workers
This commit is contained in:
@@ -71,6 +71,9 @@ print <<EOF;
|
||||
\$('#jstree').jstree({
|
||||
'plugins' : [ 'checkbox' ],
|
||||
'core' : {
|
||||
'animation': 100,
|
||||
'worker' : false,
|
||||
'force_text': true,
|
||||
'data' : {
|
||||
'url' : function (node) {
|
||||
const r = [];
|
||||
|
||||
@@ -958,7 +958,7 @@ if (!$gconfig{'no_frame_options'}) {
|
||||
print "X-Frame-Options: SAMEORIGIN\n";
|
||||
}
|
||||
if (!$gconfig{'no_content_security_policy'}) {
|
||||
print "Content-Security-Policy: script-src 'self' 'unsafe-inline' 'unsafe-eval'; frame-src 'self'; child-src 'self' blob:\n";
|
||||
print "Content-Security-Policy: script-src 'self' 'unsafe-inline' 'unsafe-eval'; frame-src 'self'; child-src 'self'\n";
|
||||
}
|
||||
print "X-Content-Type-Options: nosniff\n";
|
||||
if (defined($cs)) {
|
||||
|
||||
Reference in New Issue
Block a user