1.0.16 • Published 3 years ago
kc-headers v1.0.16
HTTP Headers
nodejs HTTP response headers.
Install
npm install kc-headers
Use
var http = require('http');
var hdr = require('kc-headers');
http.createServer(function(req, res){
hdr.csp(res);
hdr.cors(res);
hdr.noCache(res);
hdr.noIndex(res);
hdr.ctype(res, 'html');
hdr.setCookie(res, 'test', 1);
}).listen(8888);