unblocker
Version:
Web proxy for evading internet censorship & general-purpose library for rewriting remote websites.
17 lines (12 loc) • 441 B
JavaScript
;
var debug = require('debug')('unblocker:csp');
module.exports = function( /*config*/ ) {
function csp(data) {
// not removing csp could potentially prevent clients from using the proxy successfully.
if (data.headers['content-security-policy']) {
debug('deleting content-security-policy header');
delete data.headers['content-security-policy'];
}
}
return csp;
};