我最近在我的 Windows 服务器上部署了 jsreport。我的系统配置是:
- Windows 服务器 2012 R2 64 位
- IIS 8.5
- 用于 7.X 64 位的 iisnode
使用 jsreport-browser-client-dist 请求生成报告时,我收到“400 Bad Request”作为响应。当我将相同的请求重定向到 jsreportonline 时,它工作得很好。
同样在服务器上部署 jsreport 期间,由于某些安全问题,安全工具已删除以下文件:
jsreport\node_modules\winser-with-api\bin\nssm.exe
jsreport 请求:
{
"template": {
"content": "<div>Hello</div>",
"engine": "none",
"recipe": "phantom-pdf",
"phantom": {
"format": "A3",
"footerHeight": "140px",
"footer": "<div>Footer</div>",
"printDelay": 1000
}
}
}
我是 jsreport 的新手。谁能指出我正确的方向或建议我在这里做错了什么?