说明:Express的内容安全策略中间件
用法
const { expressCspHeader , INLINE , NONE , SELF } = require ( 'express-csp-header' ) ;
app . use ( expressCspHeader ( {
directives : {
'default-src' : [ SELF ] ,
'scr ipt-src' : [ SELF , INLINE , 'somehost.com
<weixin_42097668> 上传 | 大小:100kb