Skip to content

Commit

Permalink
Adds property to disable forwarded-request-headers-filter
Browse files Browse the repository at this point in the history
Fixes gh-3238
  • Loading branch information
spencergibb committed Mar 11, 2024
1 parent 2d1fec5 commit b6fc8aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ public FormFilter formFilter() {

@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(prefix = GatewayMvcProperties.PREFIX, name = "forwarded-request-headers-filter.enabled",
matchIfMissing = true)
public ForwardedRequestHeadersFilter forwardedRequestHeadersFilter() {
return new ForwardedRequestHeadersFilter();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"properties": [
{
"name": "spring.cloud.gateway.mvc.forwarded-request-headers-filter.enabled",
"type": "java.lang.Boolean",
"description": "Enables the forwarded-request-headers-filter.",
"defaultValue": "true"
}
]
}

0 comments on commit b6fc8aa

Please sign in to comment.