Oraclecloud LoadBalancer的X前进主持人标头与主机一起添加端口。这是正确的吗?

发布于 2025-01-30 07:42:22 字数 352 浏览 4 评论 0 原文

根据我的理解,每当网络中有一个远期代理或负载加重器时,它必须仅保留主机部分。但是,在OracleCloudinfrastrcture中使用的负载量正在增加主机和端口,并由结肠分隔(:)。

因此,我的应用程序逻辑,也许Swagger-UI失败了。这是根据规格允许的吗?

As per my understanding, whenever there is a forward proxy or loadbalancer in the network, it must keep only the Host part in it. But the LoadBalancer used in OracleCloudInfrastrcture is adding both the Host as well as port separated by a colon(:).

Due to this my application logic, and perhaps Swagger-UI is failing. Is this allowed as per the specs?

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜血缘 2025-02-06 07:42:22

这些标题尚未正式化。 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文