【发布时间】:2021-12-08 17:41:45
【问题描述】:
已经尝试了几个小时来解决此问题,但无法通过此错误发出发布请求。起初我使用 ng serve 但后来开始使用 npm start 但仍然出现错误。
错误:
[HPM] Error occurred while trying to proxy request /api/books from localhost:4200 to http://localhost:3333 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
我的代理文件:
{
"/api/*": {
"target": "https://localhost:4200",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
}
}
【问题讨论】:
标签: javascript node.js angular mongodb proxy