mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
proxy: implement preserve host header option (#671)
This commit is contained in:
parent
3879fe2f2a
commit
d92ee8d2a0
1 changed files with 3 additions and 0 deletions
|
@ -133,6 +133,9 @@ func (srv *Server) buildPolicyRoutes(options config.Options, domain string) []*e
|
||||||
UpgradeType: "websocket",
|
UpgradeType: "websocket",
|
||||||
Enabled: &wrappers.BoolValue{Value: policy.AllowWebsockets},
|
Enabled: &wrappers.BoolValue{Value: policy.AllowWebsockets},
|
||||||
}},
|
}},
|
||||||
|
HostRewriteSpecifier: &envoy_config_route_v3.RouteAction_AutoHostRewrite{
|
||||||
|
AutoHostRewrite: &wrappers.BoolValue{Value: !policy.PreserveHostHeader},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue