http4 component with headerFilterStrategy alway return Response Code 302 when request to http/https auto redirect server
Issue
- When request to an backend server with http4 module.
- It always return 302 with any options I try
.toD("http4://{{backend.endpoint}}?headerFilterStrategy=#gsbInternalHeaderFilter")
.toD("http4://{{backend.endpoint}}?headerFilterStrategy=#gsbInternalHeaderFilter&httpClient.redirectsEnabled=true")
.toD("http4:{{backend.endpoint}}?headerFilterStrategy=#gsbInternalHeaderFilter")
.toD("http4:{{backend.endpoint}}?headerFilterStrategy=#gsbInternalHeaderFilter&httpClient.redirectsEnabled=true")
- Only without header filter, we can get response.
.toD("https4://{{backend.endpoint}}")
- This may look like solution but we need the header filter to remove our secure information such as api access token from front-end or internal api temp header.
So how to implement this to working properly with this behaviour of the backend redirect and headerfilter.
Environment
- Red Hat Fuse
- 7.3.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.