1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-02 10:24:59 +12:00

code review

This commit is contained in:
Raymond Hill 2014-11-18 15:31:37 -02:00
parent 5e19edaab7
commit 5f3dc76b32

View file

@ -728,11 +728,9 @@ var onMainDocHeadersReceived = function(details) {
// https://github.com/gorhill/httpswitchboard/issues/181
if ( csp !== '' ) {
// If javascript not allowed, say so through a `Content-Security-Policy` directive.
// console.debug('onMainDocHeadersReceived()> PAGE CSP "%s": %o', details.url, details);
headers.push({
'name': 'Content-Security-Policy',
'value': csp
'value': csp.trim()
});
return { responseHeaders: headers };
}