express-csp-header:Express的内容安全策略中间件

时间:2021-03-20 16:40:52
【文件属性】:
文件名称:express-csp-header:Express的内容安全策略中间件
文件大小:100KB
文件格式:ZIP
更新时间:2021-03-20 16:40:52
TypeScript Express的内容安全策略中间件 用法 const { expressCspHeader , INLINE , NONE , SELF } = require ( 'express-csp-header' ) ; app . use ( expressCspHeader ( { directives : { 'default-src' : [ SELF ] , 'script-src' : [ SELF , INLINE , 'somehost.com' ] , 'style-src' : [ SELF , 'mystyles.net' ] , 'img-src' : [ 'data:' , 'images.com' ] , 'worker-src' : [ NONE ] , 'blo
【文件预览】:
express-csp-header-master
----package.json(962B)
----@types()
--------express-csp-header()
----.github()
--------workflows()
----jest.config.js(96B)
----tests()
--------index.test.ts(3KB)
----package-lock.json(453KB)
----src()
--------constants.ts(516B)
--------index.ts(3KB)
----.npmignore(63B)
----tsconfig.json(389B)
----.gitignore(57B)
----README.md(5KB)
----.editorconfig(302B)

网友评论