[ 
https://issues.apache.org/jira/browse/CAMEL-27381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-27381.
---------------------------------
    Resolution: Fixed

> camel-cxf - the cxf consumer should not return the common HTTP request 
> headers as response headers
> --------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27381
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27381
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.24.0
>
>
> A cxf: consumer maps the headers of the reply message to HTTP response 
> headers through the CxfHeaderFilterStrategy. The headers of the request are 
> still on the message, so the reply sends request headers such as Host, 
> User-Agent, Authorization and Cookie back to the client as response headers.
> camel-platform-http already keeps the common HTTP request headers 
> (COMMON_HTTP_REQUEST_HEADERS in PlatformHttpEndpoint) off the response. Do 
> the same in the cxf consumer, compared without regard to case, and document 
> in the cxf component page that the other headers on the reply message become 
> HTTP response headers, so a route that calls a backend should remove the 
> headers it does not want to return. To be noted in the upgrade guide.
> camel-servlet and camel-jetty (HttpUtil.addCommonFilters) have a similar gap, 
> not covered here.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to