Update default allowed CORS headers (#8459)
X-CustomHeader looks more like an example than a header we would want to accept in production. Added Range as a useful header that enables operations on resources that can be fetched in chunks.
This commit is contained in:
parent
9c288ee2c2
commit
3230638160
4 changed files with 4 additions and 4 deletions
|
|
@ -351,7 +351,7 @@ CORS can be controlled with the following annotations:
|
|||
|
||||
This is a multi-valued field, separated by ',' and accepts letters, numbers, _ and -.
|
||||
|
||||
- Default: `DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization`
|
||||
- Default: `DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization`
|
||||
- Example: `nginx.ingress.kubernetes.io/cors-allow-headers: "X-Forwarded-For, X-app123-XPTO"`
|
||||
|
||||
* `nginx.ingress.kubernetes.io/cors-expose-headers`: Controls which headers are exposed to response.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue