mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Auth: Add missing request headers to SigV4 middleware allowlist (#30115)
* Auth: Add Content-Type to SigV4 header allowlist * add MT headers to permitted headers * add Kibana API header to allowlist * add Content-Length header to allow list
This commit is contained in:
parent
b48ac0dc53
commit
a0a1422b2d
@ -33,6 +33,11 @@ var permittedHeaders = map[string]struct{}{
|
|||||||
"User-Agent": {},
|
"User-Agent": {},
|
||||||
"Accept": {},
|
"Accept": {},
|
||||||
"Accept-Encoding": {},
|
"Accept-Encoding": {},
|
||||||
|
"Content-Type": {},
|
||||||
|
"Content-Length": {},
|
||||||
|
"securitytenant": {},
|
||||||
|
"sgtenant": {},
|
||||||
|
"kbn-xsrf": {},
|
||||||
}
|
}
|
||||||
|
|
||||||
type SigV4Middleware struct {
|
type SigV4Middleware struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user