manual merge of staging

This commit is contained in:
Caleb James DeLisle
2017-08-17 12:14:19 +02:00
51 changed files with 1672 additions and 394 deletions

View File

@@ -32,10 +32,7 @@ var setHeaders = (function () {
if (typeof(config.httpHeaders) !== 'object') { return function () {}; }
const headers = clone(config.httpHeaders);
headers['Access-Control-Allow-Origin'] = "*";
if (config.contentSecurity && false) {
if (config.contentSecurity) {
headers['Content-Security-Policy'] = clone(config.contentSecurity);
if (!/;$/.test(headers['Content-Security-Policy'])) { headers['Content-Security-Policy'] += ';' }
if (headers['Content-Security-Policy'].indexOf('frame-ancestors') === -1) {