I found the solution:
ControllerFilter class doFilter method http response headers are not set only content type is set from resource response. I have added the code to get the headers from the ResourceResponse and set into the HttpServletResponse before it opens the stream.
I added the code as attachment.
Thanks for viewing.
ControllerFilter.java.zip 2.8 KB