mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-26 21:19:31 +02:00
config: add support for set_response_headers in a policy (#2171)
* config: add support for set_response_headers in a policy * docs: add note about precedence
This commit is contained in:
parent
129df47f9c
commit
69576cffe4
6 changed files with 514 additions and 471 deletions
|
@ -276,6 +276,7 @@ func (b *Builder) buildPolicyRoutes(options *config.Options, domain string) ([]*
|
|||
Metadata: &envoy_config_core_v3.Metadata{},
|
||||
RequestHeadersToAdd: toEnvoyHeaders(policy.SetRequestHeaders),
|
||||
RequestHeadersToRemove: getRequestHeadersToRemove(options, &policy),
|
||||
ResponseHeadersToAdd: toEnvoyHeaders(policy.SetResponseHeaders),
|
||||
}
|
||||
if policy.Redirect != nil {
|
||||
action, err := b.buildPolicyRouteRedirectAction(policy.Redirect)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue