This commit is contained in:
Caleb James DeLisle
2017-07-22 16:43:53 +02:00
parent ffb5e555a0
commit 8404017af1
19 changed files with 268 additions and 146 deletions

View File

@@ -32,7 +32,7 @@ var setHeaders = (function () {
if (typeof(config.httpHeaders) !== 'object') { return function () {}; }
const headers = clone(config.httpHeaders);
if (config.contentSecurity) {
if (config.contentSecurity && false) {
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) {