diff --git a/views/default.handlebars b/views/default.handlebars index 6e4ac0b0..a63f7b0f 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -7,6 +7,7 @@ + diff --git a/views/login.handlebars b/views/login.handlebars index 7c398df0..ef621293 100644 --- a/views/login.handlebars +++ b/views/login.handlebars @@ -7,6 +7,7 @@ + diff --git a/views/login2.handlebars b/views/login2.handlebars index 3b44ea17..9b0e8944 100644 --- a/views/login2.handlebars +++ b/views/login2.handlebars @@ -7,6 +7,7 @@ + diff --git a/webserver.js b/webserver.js index 3bb9e851..819736a9 100644 --- a/webserver.js +++ b/webserver.js @@ -6265,7 +6265,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF 'Referrer-Policy': 'no-referrer', 'X-XSS-Protection': '1; mode=block', 'X-Content-Type-Options': 'nosniff', - 'Content-Security-Policy': "default-src 'none'; font-src 'self'; script-src 'self' 'unsafe-inline'" + extraScriptSrc + "; connect-src 'self'" + geourl + selfurl + "; img-src 'self' blob: data:" + geourl + " data:; style-src 'self' 'unsafe-inline'; frame-src 'self' mcrouter:" + extraFrameSrc + "; media-src 'self'; form-action 'self'" + 'Content-Security-Policy': "default-src 'none'; font-src 'self'; script-src 'self' 'unsafe-inline'" + extraScriptSrc + "; connect-src 'self'" + geourl + selfurl + "; img-src 'self' blob: data:" + geourl + " data:; style-src 'self' 'unsafe-inline'; frame-src 'self' mcrouter:" + extraFrameSrc + "; media-src 'self'; form-action 'self'; manifest-src 'self'" }; if (req.headers['user-agent'] && (req.headers['user-agent'].indexOf('Chrome') >= 0)) { headers['Permissions-Policy'] = 'interest-cohort=()'; } // Remove Google's FLoC Network, only send this if Chrome browser if ((parent.config.settings.allowframing !== true) && (typeof parent.config.settings.allowframing !== 'string')) { headers['X-Frame-Options'] = 'sameorigin'; }