我不明白为什么 Kong 需要host = userApi.test在被要求Headers
时加入GET localhost:8000/api/v1/test。
有没有什么方法可以Headers在请求时不包括在内?
例如,我使用 Angular 通过 Kong 请求 API,我总是需要包含host?
我不明白为什么 Kong 需要host = userApi.test在被要求Headers
时加入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[]创建路线时不要包括。