mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-11 16:17:39 +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
|
@ -1372,6 +1372,14 @@ Remove Request Headers allows you to remove given request headers. This can be u
|
|||
```
|
||||
|
||||
|
||||
### Set Response Headers
|
||||
- Config File Key: `set_response_headers`
|
||||
- Type: map of `strings` key value pairs
|
||||
- Optional
|
||||
|
||||
Set Response Headers allows you to set static values for the given response headers. These headers will take precedence over the global `set_response_headers`.
|
||||
|
||||
|
||||
### Rewrite Response Headers
|
||||
- Config File Key: `rewrite_response_headers`
|
||||
- Type: `object`
|
||||
|
|
|
@ -1507,6 +1507,14 @@ settings:
|
|||
- X-Email
|
||||
- X-Username
|
||||
```
|
||||
- name: "Set Response Headers"
|
||||
keys: ["set_response_headers"]
|
||||
attributes: |
|
||||
- Config File Key: `set_response_headers`
|
||||
- Type: map of `strings` key value pairs
|
||||
- Optional
|
||||
doc: |
|
||||
Set Response Headers allows you to set static values for the given response headers. These headers will take precedence over the global `set_response_headers`.
|
||||
- name: "Rewrite Response Headers"
|
||||
keys: ["rewrite_response_headers"]
|
||||
attributes: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue