micro-helmet:微型安全标头

时间:2024-06-01 10:54:08
【文件属性】:

文件名称:micro-helmet:微型安全标头

文件大小:5KB

文件格式:ZIP

更新时间:2024-06-01 10:54:08

http security csp hsts helmet

微型头盔 微型使用安全头 需要node.js 10+ -- 安装 npm install micro-helmet 用法 作为包装函数: var helmet = require ( 'micro-helmet' ) module . exports = helmet ( async ( req , res ) => { return { ok : true } } ) 作为实用程序: var helmet = require ( 'micro-helmet' ) module . exports = async ( req , res ) => { await helmet . addHeaders ( req , res ) return { ok : true } } 原料药 helmet(handler, opts={}) 包装处理程序函数。 这会在致电您的处


【文件预览】:
micro-helmet-default
----.gitignore(526B)
----package.json(817B)
----.npmrc(19B)
----LICENSE.md(628B)
----index.js(679B)
----CHANGELOG.md(279B)
----test.js(2KB)
----.github()
--------workflows()
--------dependabot.yml(143B)
----README.md(2KB)

网友评论