remove a debug line before release which killed CSP
This commit is contained in:
parent
7ca60e55a7
commit
723151254c
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ var setHeaders = (function () {
|
||||||
if (typeof(config.httpHeaders) !== 'object') { return function () {}; }
|
if (typeof(config.httpHeaders) !== 'object') { return function () {}; }
|
||||||
|
|
||||||
const headers = clone(config.httpHeaders);
|
const headers = clone(config.httpHeaders);
|
||||||
if (config.contentSecurity && false) {
|
if (config.contentSecurity) {
|
||||||
headers['Content-Security-Policy'] = clone(config.contentSecurity);
|
headers['Content-Security-Policy'] = clone(config.contentSecurity);
|
||||||
if (!/;$/.test(headers['Content-Security-Policy'])) { headers['Content-Security-Policy'] += ';' }
|
if (!/;$/.test(headers['Content-Security-Policy'])) { headers['Content-Security-Policy'] += ';' }
|
||||||
if (headers['Content-Security-Policy'].indexOf('frame-ancestors') === -1) {
|
if (headers['Content-Security-Policy'].indexOf('frame-ancestors') === -1) {
|
||||||
|
|
Loading…
Reference in a new issue