UNPKG

astroboy

Version:

Astroboy(阿童木)is a Nodejs SFB(Separation of Front and Back ends) framework, built on koa2.

13 lines 421 B
"use strict"; /** * X-Content-Type-Options * https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/X-Content-Type-Options */ const astroboySecurityCTOFactory = function (options = 'nosniff', app) { return function cto(ctx, next) { ctx.set('X-Content-Type-Options', options); return next(); }; }; module.exports = astroboySecurityCTOFactory; //# sourceMappingURL=astroboy-security-cto.js.map