在google chrome v87中有一个更新,它将响应位置头中带有http的请求标记为“不安全”,并向用户显示一条消息,说“您将要提交的信息不安全”,尽管我们的负载均衡器已经自动将此内部重定向到http请求中的https请求。
所以我的问题是,对于使用java的jboss服务器应用程序,是否有什么可以在代码/配置方面做到的,能够在到达客户端之前将所有位置响应头从http转换为https?
我们已经尝试对standalone.xml进行一些更改,将以下http listener和https listener标记添加到默认服务器,如下所示:
<http-listener name="default" socket-binding="http"
proxy-address-forwarding="true" redirect-socket="https"
enable-http2="true"/>
<https-listener name="https" max-post-size="262144000" security-realm="ApplicationRealm" socket-binding="https"/>
但这仍然会导致响应位置头仍然包含http。
我们还在响应中添加了以下标题,但也没有起到任何作用:
x-转发-proto:https
暂无答案!
目前还没有任何答案,快来回答吧!