unblocker
Version:
Web proxy for evading internet censorship & general-purpose library for rewriting remote websites.
16 lines (12 loc) • 374 B
JavaScript
var debug = require("debug")("unblocker:hpkp");
module.exports = function (/*config*/) {
function hpkp(data) {
// this could potentially block clients from using the proxy successfully.
if (data.headers["public-key-pins"]) {
debug("deleting public-key-pins header");
delete data.headers["public-key-pins"];
}
}
return hpkp;
};
;