如何在 Weblogic Response 中配置 HTTP Headers [英] How configure the HTTP Headers in Weblogic Response

查看:83
本文介绍了如何在 Weblogic Response 中配置 HTTP Headers的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Weblogic 11g 并希望能够为 weblogic 提供的所有文件添加标头.在 weblogic 前面没有单独的 web 服务器.找不到配置 weblogic 以将标头添加到 HTTP 响应的方法.在 IIS 中,您可以通过选择服务器并单击添加标题来轻松完成此操作.寻找在 weblogic 中执行此操作的等效方法.

Using Weblogic 11g and want to be able to add headers to all files served up by weblogic. There is no seperate web server sitting in front of weblogic. Cannot find a way to configure weblogic to add header to the HTTP response. In IIS you can easily do this by choosing the server and clicking to add headers. Looking for the equivalent way to do this in weblogic.

推荐答案

我不认为这是可配置的.您必须编写一个 Filter 根据需要操作标题.

I dont think this is configurable. You would have to write a Filter to manipulate the headers as you need.

作为提示,您可以尝试使用此包中的内容http://flavio.tordini.org/http-headers-filter.我自己没试过

As a hint, you could try something along the lines of this package http://flavio.tordini.org/http-headers-filter. I have not tried this myself

这篇关于如何在 Weblogic Response 中配置 HTTP Headers的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆