【发布时间】:2021-04-29 16:50:29
【问题描述】:
我已经使用 angular2 CLI 设置了反向代理,如下所示:
{
"/api/customer/*": {
"target": "http://localhost:9010",
"secure": false
}
}
我的问题是远程 API 在路径 /customer 上公开服务,但反向代理发送的请求在 /api/customer 上。
有没有办法从反向代理发送的请求中删除 /api? (不要回答“只从你的 http 请求中删除 /api”,因为我在 /customer 上有一个角度路由)。
【问题讨论】:
标签: angular proxy angular-cli