我在开发者Portal API Manager3.2中配置了生成apiKey消费接口时限制IP访问,但IP不是client IP,而是负载均衡IP。
我应该在API管理器或负载均衡器中设置任何中介策略来实现我的目标吗?
发布于 2021-01-06 11:48:22
您可以设置X-Forwarded-For header,即负载均衡器的用户IP。然后,API管理器使用它来执行验证。
https://www.nginx.com/resources/wiki/start/topics/examples/forwarded/
https://stackoverflow.com/questions/65586244
复制相似问题