Skip to content

Commit

Permalink
route preserveHostHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
tgeens committed Aug 31, 2023
1 parent 5602b37 commit bbe3dcc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ RouteLocator customRouteLocator(RouteLocatorBuilder builder, RuntimeRequestResol
return builder.routes()
.route(r -> r
.predicate(exchange -> requestResolver.resolveDeploymentId(exchange).isPresent())
.filters(f ->
f.addResponseHeader("X-CG-Routed", "w00t"))

.filters(f -> f
.addResponseHeader("X-CG-Routed", "w00t")
.preserveHostHeader())
.uri("cg://ignored")
)

Expand Down

0 comments on commit bbe3dcc

Please sign in to comment.