【发布时间】:2020-03-07 04:35:09
【问题描述】:
我不明白为什么 Kong 需要在 Headers 中包含 host = userApi.test
当GET localhost:8000/api/v1/test 被请求时。
有什么方法可以在请求时不包含Headers?
例如,我使用 Angular 通过 Kong 请求 API,我总是需要包含 host?
【问题讨论】:
标签: kong kong-plugin
我不明白为什么 Kong 需要在 Headers 中包含 host = userApi.test
当GET localhost:8000/api/v1/test 被请求时。
有什么方法可以在请求时不包含Headers?
例如,我使用 Angular 通过 Kong 请求 API,我总是需要包含 host?
【问题讨论】:
标签: kong kong-plugin
我找到了解决办法!
https://discuss.konghq.com/t/setup-for-one-service-without-host-header/805
创建路由时不要包含hosts[]。
【讨论】: