angular - 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
解决方案
推荐阅读
- android - 以编程方式显示android操作栏,需要帮助故障排除
- python - Python DataFrame - 像表格一样的格式
- arrays - 打印字符串的前 N 个字符 (C)
- django - djagno NotImplementedError:Django 没有为 AnonymousUser 提供数据库表示
- machine-learning - 分类模型预测的事件发生的实际概率是多少?
- reactjs - ReferenceError: setStatusBarColor Hook 在定义时未定义
- syntax - 如何在精益中使用求和符号?
- stata - 我需要一些帮助
- python - 如何从 forloop 更新嵌套列表的元素 - Python
- android - 如何获取第一个 sed 的输出并将其用作第二个 sed 输入