【问题标题】:Why does Kong need headers host whenever request?为什么Kong在请求时需要标头主机?
【发布时间】: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


    【解决方案1】:

    我找到了解决办法!

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

    创建路由时不要包含hosts[]

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-12-02
      • 2016-09-02
      • 1970-01-01
      • 1970-01-01
      • 2017-07-17
      • 2020-12-31
      • 1970-01-01
      相关资源
      最近更新 更多