Skip to content

Spring gateway MVC - Property : spring.cloud.gateway.x-forwarded.enabled not implemented #3237

@florentm35

Description

@florentm35

Describe the bug
Hello, after some test i have found that the property spring.cloud.gateway.x-forwarded.enabled are present in the class XForwardedRequestHeadersFilter but not use.

For disable all forward header it's needed to add all property :

spring.cloud.gateway.x-forwarded.protoEnabled=false
spring.cloud.gateway.x-forwarded.forEnabled=false
spring.cloud.gateway.x-forwarded.hostEnabled=false
spring.cloud.gateway.x-forwarded.prefixEnabled=false
spring.cloud.gateway.x-forwarded.portEnabled=false

I think it can be easy to implement the propety

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions