Oraclecloud LoadBalancer的X前进主持人标头与主机一起添加端口。这是正确的吗?
根据我的理解,每当网络中有一个远期代理或负载加重器时,它必须仅保留主机部分。但是,在OracleCloudinfrastrcture中使用的负载量正在增加主机和端口,并由结肠分隔(:)。
因此,我的应用程序逻辑,也许Swagger-UI失败了。这是根据规格允许的吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些标题尚未正式化。 Oracle在此处记录了这一点: https://docs.oracle.com/en-us/iaas/iaas/content/content/balance/reference/reference/reference/httpheaders.htm#:~: 2Dforwarded%2DHOST,原始%20Server%20Handling%20%20 Request
一个人需要相应地通过此标头来解析主机部分。
These headers aren't formalized yet. And Oracle has documented this here: https://docs.oracle.com/en-us/iaas/Content/Balance/Reference/httpheaders.htm#:~:text=X%2DForwarded%2DHost,original%20server%20handling%20the%20request
One will need to parse the host part through this header accordingly.