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:
Caleb Doxsey 2021-05-04 09:43:52 -06:00 committed by GitHub
parent 129df47f9c
commit 69576cffe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 514 additions and 471 deletions

View file

@ -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`

View file

@ -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: |