我正在尝试将流量从我的测试应用程序的 /api/* url 重定向到我在 Heroku 上托管的 api。
因此,应该将 localhost/api/hello 代理到 testapp.heroku.com/hello 并返回响应。
使用 node-http-proxy 在 localhost 到 localhost 上完美运行,但是当我将它指向 myapp.heroku.com 时,我收到此错误:
Heroku | No such app
There is no app configured at that hostname.
Perhaps the app owner has renamed it, or you mistyped the URL.
我有一种感觉是 Heroku 的路由系统在伪造我的代理请求,我还没有找到解决它的方法。有任何想法吗?