I have a Spring Interceptor which attempts to add an HTTP header in the postHandle() method.
public void postHandle(HttpServletRequest req, HttpServletResponse resp,
Object obj1, ModelAndView mv)
throws Exception {
response.setHeader("SomeHeaderSet", "set");
response.addHeader("SomeHeaderAdd", "added");
}
}
However, neither header is added with either setHeader() or addHeader().
Is this even valid to do in the interceptor? I figured it WOULD be, but it ain't workin.
Regards, Dustin