首页 > 解决方案 > JHipster Angular clinet 应用程序拦截每个“http/https”请求,然后添加 http://localhost

问题描述

我正在使用 Node Jhipster 生成这个应用程序,它在前端是 Angular,在后端是 NestJs。

当我在 AWS 客户端应用程序上向我的服务器发送 HTTP 请求时,会将“localhost:4200”添加到 API URL;

示例:http://localhost:4200/3.121.199.154:8080/api/authenticate 但我想要的只是像这样http://3.121.199.154:8080/api/authenticate

在此处输入图像描述

在此处输入图像描述

标签: angularwebpackjhipsterinterceptor

解决方案


推荐阅读