Node.js 如何修复html pdf节点模块任意文件读取漏洞?
我想将html转换为pdf文档。使用html pdf npm模块,其中包含漏洞。 请建议其他解决方案。有json到pdf格式。这是非常受欢迎的。您必须将现有模板从html转换为json,但它可以工作 此外,您还可以使用配置提供phantomjs参数Node.js 如何修复html pdf节点模块任意文件读取漏洞?,node.js,security,npm,html-pdf,node-html-pdf,Node.js,Security,Npm,Html Pdf,Node Html Pdf,我想将html转换为pdf文档。使用html pdf npm模块,其中包含漏洞。 请建议其他解决方案。有json到pdf格式。这是非常受欢迎的。您必须将现有模板从html转换为json,但它可以工作 此外,您还可以使用配置提供phantomjs参数 phantomArgs: ['--local-url-access=false']
phantomArgs: ['--local-url-access=false']