为什么 Kong 每次请求都需要 headers 主机?

Why does Kong need headers host whenever request?

我不明白为什么 Kong 要求在 Headers
中包含 host = userApi.test 当请求 GET localhost:8000/api/v1/test 时。

有什么方法可以在请求时不包含 Headers 吗?

例如,我正在使用 Angular 通过 Kong 请求 API,我总是需要包含 host?

我找到了解决方案!

https://discuss.konghq.com/t/setup-for-one-service-without-host-header/805

创建路线时不包括 hosts[]